java.util.EventListener
public static interface Connection.ConnectionLifecycleListener
extends java.util.EventListener
Modifier and Type | Method | Description |
---|---|---|
void |
lifecycleEvent(Connection conn,
Connection.Lifecycle previous,
Connection.Lifecycle current) |
If this
EventListener is registered with a
Connection this method is called whenever that
Connection 's lifecycle changes. |
void lifecycleEvent(Connection conn, Connection.Lifecycle previous, Connection.Lifecycle current)
EventListener
is registered with a
Connection
this method is called whenever that
Connection
's lifecycle changes. Note that the lifecycle may have
changed again by the time this method is called so the
Connection
's current lifecycle may be different from the value of
current
.conn
- the Connection
previous
- the previous value of the lifecyclecurrent
- the new value of the lifecycleReport a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA