public interface XcaConnectionEventListener
Modifier and Type | Method and Description |
---|---|
void |
connectionClosed(XcaConnectionEvent connectionEvent)
Notifies the close of a connection.
|
void |
connectionErrorOccurred(XcaConnectionEvent connectionEvent)
Notifies a connection related error.
|
void connectionClosed(XcaConnectionEvent connectionEvent)
A managed connection notifies its listeners by calling this method when an application component closes a connection handle. The owner of the managed connection can use this event to put the managed connection instance back in to the connection pool, or close the physical connection.
connectionEvent
- Connection eventvoid connectionErrorOccurred(XcaConnectionEvent connectionEvent)
The managed connection instance calls this method to notify its listeners of the occurrence of a physical connection-related error. The event notification happens just before it throws an exception to the application component using the connection handle.
This method indicates that the associated managed connection instance is now invalid and unusable. The owner of the managed connection handles the connection error event notification by initiating owner-specific cleanup (for example, removing the managed connection instance from the connection pool) and then calling the destroy method to destroy the physical connection.
connectionEvent
- Connection eventCopyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.