public class UniversalPooledConnectionStatus extends Object
normal
, then the pooled
connection is processed normally. If the status is
close on return
, then the pooled connection is automatically
closed and it is not returned to the connection pool.Modifier and Type | Field and Description |
---|---|
static UniversalPooledConnectionStatus |
STATUS_BAD
The pooled connection's status is bad.
|
static String |
STATUS_BAD_DESC |
static 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.
|
static String |
STATUS_CLOSE_ON_RETURN_DESC |
static UniversalPooledConnectionStatus |
STATUS_CLOSED
The pooled connection's status is closed.
|
static String |
STATUS_CLOSED_DESC |
static UniversalPooledConnectionStatus |
STATUS_NORMAL
The pooled connection's status is normal.
|
static String |
STATUS_NORMAL_DESC |
static UniversalPooledConnectionStatus |
STATUS_RECONNECTING
The pooled connection's status is reconnecting.
|
static String |
STATUS_RECONNECTING_DESC |
static 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.
|
static String |
STATUS_REPLACE_ON_RETURN_DESC |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object status)
Determines equality.
|
protected int |
getStatus() |
String |
toString() |
public static final String STATUS_NORMAL_DESC
public static final String STATUS_CLOSED_DESC
public static final String STATUS_BAD_DESC
public static final String STATUS_CLOSE_ON_RETURN_DESC
public static final String STATUS_REPLACE_ON_RETURN_DESC
public static final String STATUS_RECONNECTING_DESC
public static final UniversalPooledConnectionStatus STATUS_NORMAL
public static final UniversalPooledConnectionStatus STATUS_CLOSE_ON_RETURN
public static final UniversalPooledConnectionStatus STATUS_REPLACE_ON_RETURN
public static final UniversalPooledConnectionStatus STATUS_CLOSED
public static final UniversalPooledConnectionStatus STATUS_BAD
public static final UniversalPooledConnectionStatus STATUS_RECONNECTING
public boolean equals(Object status)
protected int getStatus()
Copyright © 2008, 2017, Oracle. All rights reserved.