Package oracle.ucp
Class UniversalPooledConnectionStatus
- java.lang.Object
-
- oracle.ucp.UniversalPooledConnectionStatus
-
public class UniversalPooledConnectionStatus extends java.lang.ObjectDescribes the status of a pooled connection.The status of the pooled connection is looked at when the connection is returned by the borrower. If the status is
normal, then the pooled connection is processed normally. If the status isclose on return, then the pooled connection is automatically closed and it is not returned to the connection pool.
-
-
Field Summary
Fields Modifier and Type Field Description static UniversalPooledConnectionStatusSTATUS_BADThe pooled connection's status is bad.static java.lang.StringSTATUS_BAD_DESCstatic UniversalPooledConnectionStatusSTATUS_CLOSE_ON_RETURNThe pooled connection should be closed and not put back into the pool when it is returned by the borrower.static java.lang.StringSTATUS_CLOSE_ON_RETURN_DESCstatic UniversalPooledConnectionStatusSTATUS_CLOSEDThe pooled connection's status is closed.static java.lang.StringSTATUS_CLOSED_DESCstatic UniversalPooledConnectionStatusSTATUS_NORMALThe pooled connection's status is normal.static java.lang.StringSTATUS_NORMAL_DESCstatic UniversalPooledConnectionStatusSTATUS_RECONNECTINGThe pooled connection's status is reconnecting.static java.lang.StringSTATUS_RECONNECTING_DESCstatic UniversalPooledConnectionStatusSTATUS_REPLACE_ON_RETURNThe pooled connection should be closed and replaced with a brand new connection in the pool when it is returned by the borrower.static java.lang.StringSTATUS_REPLACE_ON_RETURN_DESC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Determines equality.protected intgetStatus()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
STATUS_NORMAL_DESC
public static final java.lang.String STATUS_NORMAL_DESC
- See Also:
- Constant Field Values
-
STATUS_CLOSED_DESC
public static final java.lang.String STATUS_CLOSED_DESC
- See Also:
- Constant Field Values
-
STATUS_BAD_DESC
public static final java.lang.String STATUS_BAD_DESC
- See Also:
- Constant Field Values
-
STATUS_CLOSE_ON_RETURN_DESC
public static final java.lang.String STATUS_CLOSE_ON_RETURN_DESC
- See Also:
- Constant Field Values
-
STATUS_REPLACE_ON_RETURN_DESC
public static final java.lang.String STATUS_REPLACE_ON_RETURN_DESC
- See Also:
- Constant Field Values
-
STATUS_RECONNECTING_DESC
public static final java.lang.String STATUS_RECONNECTING_DESC
- See Also:
- Constant Field Values
-
STATUS_NORMAL
public static final UniversalPooledConnectionStatus STATUS_NORMAL
The pooled connection's status is normal.
-
STATUS_CLOSE_ON_RETURN
public static final UniversalPooledConnectionStatus STATUS_CLOSE_ON_RETURN
The pooled connection should be closed and not put back into the pool when it is returned by the borrower.
-
STATUS_REPLACE_ON_RETURN
public static final UniversalPooledConnectionStatus STATUS_REPLACE_ON_RETURN
The pooled connection should be closed and replaced with a brand new connection in the pool when it is returned by the borrower.
-
STATUS_CLOSED
public static final UniversalPooledConnectionStatus STATUS_CLOSED
The pooled connection's status is closed.
-
STATUS_BAD
public static final UniversalPooledConnectionStatus STATUS_BAD
The pooled connection's status is bad.
-
STATUS_RECONNECTING
public static final UniversalPooledConnectionStatus STATUS_RECONNECTING
The pooled connection's status is reconnecting.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
Determines equality.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- The object to compare.- Returns:
trueif this object is equal to the object passed in; otherwise,false.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStatus
protected int getStatus()
-
-