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 voiddetached(FbService service)Called when theserviceconnection has been detachedvoiddetaching(FbService service)Called before theservicewill be detached.protected voidlogError(java.lang.String message, java.lang.Throwable throwable)voidwarningReceived(FbService service, java.sql.SQLWarning warning)Called when a warning was received for theserviceconnection.-
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:ServiceListenerCalled before theservicewill be detached.This event is intended for cleanup action, implementer should take care that no exceptions are thrown from this method.
- Specified by:
detachingin interfaceServiceListener- Parameters:
service- The service object that is detaching
-
detached
public void detached(FbService service)
Description copied from interface:ServiceListenerCalled when theserviceconnection has been detached- Specified by:
detachedin interfaceServiceListener- Parameters:
service- The database object that was detached
-
warningReceived
public void warningReceived(FbService service, java.sql.SQLWarning warning)
Description copied from interface:ServiceListenerCalled when a warning was received for theserviceconnection.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:
warningReceivedin interfaceServiceListener- Parameters:
service- service receiving the warningwarning- Warning
-
logError
protected void logError(java.lang.String message, java.lang.Throwable throwable)- Specified by:
logErrorin classAbstractListenerDispatcher<ServiceListener>
-
-