public class CompositeProxoolListener extends AbstractListenerContainer implements ProxoolListenerIF
ProxoolListenerIF that keeps a list of ProxoolListenerIFs
and notifies them in a thread safe manner.
It also implements ListenerContainerIF
which provides methods for
adding and
removing listeners.| 构造器和说明 |
|---|
CompositeProxoolListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition,
Properties completeInfo)
Notify that a new connection pool has been registered.
|
void |
onShutdown(String alias)
Notify that a connection pool will be shutdown.
|
addListener, getListeners, isEmpty, removeListenerpublic void onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition, Properties completeInfo)
ProxoolListenerIFonRegistration 在接口中 ProxoolListenerIFconnectionPoolDefinition - the new definition.completeInfo - the properties that could be used to create this definition.ProxoolListenerIF.onRegistration(ConnectionPoolDefinitionIF, Properties)public void onShutdown(String alias)
ProxoolListenerIFonShutdown 在接口中 ProxoolListenerIFalias - the alias of the pool about to be shut down.ProxoolListenerIF.onShutdown(String)Copyright © 2024. All rights reserved.