Connection.Listener.Adapter, ConnectionStatisticspublic static interface Connection.Listener
A Listener for connection events.
Listeners can be added to a Connection to get open and close events.
The AbstractConnectionFactory implements a pattern where objects implement
this interface that have been added via Container.addBean(Object) to
the Connector or ConnectionFactory are added as listeners to all new connections
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Connection.Listener.Adapter |
| Modifier and Type | Method | Description |
|---|---|---|
void |
onClosed(Connection connection) |
|
void |
onOpened(Connection connection) |
void onOpened(Connection connection)
void onClosed(Connection connection)
Copyright © 1995–2017 Webtide. All rights reserved.