public final class ServiceListenerDispatcher extends AbstractListenerDispatcher<ServiceListener> implements ServiceListener
Constructor and Description |
---|
ServiceListenerDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
detached(FbService service)
Called when the
service connection has been detached |
void |
detaching(FbService service)
Called before the
service will be detached. |
void |
warningReceived(FbService service,
java.sql.SQLWarning warning)
Called when a warning was received for the
service connection. |
addListener, addWeakListener, isShutdown, iterator, removeAllListeners, removeListener, shutdown
public void detaching(FbService service)
ServiceListener
service
will be detached.
This event is intended for cleanup action, implementer should take care that no exceptions are thrown from this method.
detaching
in interface ServiceListener
service
- The service object that is detachingpublic void detached(FbService service)
ServiceListener
service
connection has been detacheddetached
in interface ServiceListener
service
- The database object that was detachedpublic void warningReceived(FbService service, java.sql.SQLWarning warning)
ServiceListener
service
connection.
In implementation it is possible that some warnings are not sent to listeners on the database, but only to listeners on specific connection derived objects.
warningReceived
in interface ServiceListener
service
- service receiving the warningwarning
- WarningCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.