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 TypeMethodDescriptionvoid
Called when theservice
connection has been detachedvoid
Called before theservice
will be detached.protected void
void
warningReceived
(FbService service, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ServiceListenerDispatcher
public ServiceListenerDispatcher()
-
-
Method Details
-
detaching
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
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
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
- Specified by:
logError
in classAbstractListenerDispatcher<ServiceListener>
-