Package org.firebirdsql.gds.ng.listeners
Class ServiceListenerDispatcher
- java.lang.Object
-
- org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcher<ServiceListener>
-
- org.firebirdsql.gds.ng.listeners.ServiceListenerDispatcher
-
- All Implemented Interfaces:
java.lang.Iterable<ServiceListener>
,ServiceListener
public final class ServiceListenerDispatcher extends AbstractListenerDispatcher<ServiceListener> implements ServiceListener
- Author:
- Mark Rotteveel
-
-
Constructor Summary
Constructors Constructor Description ServiceListenerDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detached(FbService service)
Called when theservice
connection has been detachedvoid
detaching(FbService service)
Called before theservice
will be detached.protected void
logError(java.lang.String message, java.lang.Throwable throwable)
void
warningReceived(FbService service, java.sql.SQLWarning warning)
Called when a warning was received for theservice
connection.-
Methods inherited from class org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcher
addListener, addWeakListener, isShutdown, iterator, notify, removeAllListeners, removeListener, shutdown
-
-
-
-
Method Detail
-
detaching
public void detaching(FbService service)
Description copied from interface:ServiceListener
Called before theservice
will be detached.This event is intended for cleanup action, implementer should take care that no exceptions are thrown from this method.
- Specified by:
detaching
in interfaceServiceListener
- Parameters:
service
- The service object that is detaching
-
detached
public void detached(FbService service)
Description copied from interface:ServiceListener
Called when theservice
connection has been detached- Specified by:
detached
in interfaceServiceListener
- Parameters:
service
- The database object that was detached
-
warningReceived
public void warningReceived(FbService service, java.sql.SQLWarning warning)
Description copied from interface:ServiceListener
Called when a warning was received for theservice
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.
- Specified by:
warningReceived
in interfaceServiceListener
- Parameters:
service
- service receiving the warningwarning
- Warning
-
logError
protected void logError(java.lang.String message, java.lang.Throwable throwable)
- Specified by:
logError
in classAbstractListenerDispatcher<ServiceListener>
-
-