- All Known Implementing Classes:
ServiceListenerDispatcher
public interface ServiceListener
Listener for service events.
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when theservice
connection has been detachedvoid
Called before theservice
will be detached.void
warningReceived
(FbService service, SQLWarning warning) Called when a warning was received for theservice
connection.
-
Method Details
-
detaching
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.
- Parameters:
service
- The service object that is detaching
-
detached
Called when theservice
connection has been detached- Parameters:
service
- The database object that was detached
-
warningReceived
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.
- Parameters:
service
- service receiving the warningwarning
- Warning
-