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 SummaryConstructors Constructor Description ServiceListenerDispatcher()
 - 
Method SummaryAll 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.voidwarningReceived(FbService service, java.sql.SQLWarning warning)Called when a warning was received for theserviceconnection.- 
Methods inherited from class org.firebirdsql.gds.ng.listeners.AbstractListenerDispatcheraddListener, addWeakListener, isShutdown, iterator, removeAllListeners, removeListener, shutdown
 
- 
 
- 
- 
- 
Method Detail- 
detachingpublic 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 interface- ServiceListener
- Parameters:
- service- The service object that is detaching
 
 - 
detachedpublic void detached(FbService service) Description copied from interface:ServiceListenerCalled when theserviceconnection has been detached- Specified by:
- detachedin interface- ServiceListener
- Parameters:
- service- The database object that was detached
 
 - 
warningReceivedpublic 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 interface- ServiceListener
- Parameters:
- service- service receiving the warning
- warning- Warning
 
 
- 
 
-