Module org.firebirdsql.jaybird
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:
Iterable<ServiceListener>,ServiceListener
public final class ServiceListenerDispatcher
extends AbstractListenerDispatcher<ServiceListener>
implements ServiceListener
- Author:
- Mark Rotteveel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when theserviceconnection has been detachedvoidCalled before theservicewill be detached.protected voidvoidwarningReceived(FbService service, 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, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ServiceListenerDispatcher
public ServiceListenerDispatcher()
-
-
Method Details
-
detaching
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
Description copied from interface:ServiceListenerCalled when theserviceconnection has been detached- Specified by:
detachedin interfaceServiceListener- Parameters:
service- The database object that was detached
-
warningReceived
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
- Specified by:
logErrorin classAbstractListenerDispatcher<ServiceListener>
-