java.io.Serializable
, java.lang.Comparable<Session.Validation>
public static enum Session.Validation extends java.lang.Enum<Session.Validation>
Session
.
The amount of effort put into checking should be non-decreasing from NONE
(least effort) to COMPLETE (most effort). Exactly what is checked is
implementation dependent. For example, a memory resident database driver
might implement SOCKET and NETWORK to be the same as LOCAL. SERVER might
verify that a database manager thread is running and COMPLETE might trigger
the database manager thread to run a deadlock detection algorithm.Enum Constant | Description |
---|---|
COMPLETE |
everything that can be checked is working.
|
LOCAL |
NONE plus check local resources |
NETWORK |
SOCKET plus the network is intact (network PING) |
NONE |
isValid fails only if the
Session is closed. |
SERVER |
NETWORK plus significant server processes are running |
SOCKET |
LOCAL plus the server isn't obviously unreachable (dead socket) |
Modifier and Type | Method | Description |
---|---|---|
static Session.Validation |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Session.Validation[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Session.Validation NONE
Session
is closed.public static final Session.Validation LOCAL
NONE
plus check local resourcespublic static final Session.Validation SOCKET
LOCAL
plus the server isn't obviously unreachable (dead socket)public static final Session.Validation NETWORK
SOCKET
plus the network is intact (network PING)public static final Session.Validation SERVER
NETWORK
plus significant server processes are runningpublic static final Session.Validation COMPLETE
SERVER
.public static Session.Validation[] values()
for (Session.Validation c : Session.Validation.values()) System.out.println(c);
public static Session.Validation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullReport 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 EA5