public enum ConnectionFailureType extends Enum<ConnectionFailureType>
Enum Constant and Description |
---|
CONNECT_TIMEOUT_EXPIRED
When time to connect remote server expired.
|
CONNECTION_POOL_IS_EMPTY
When connection pool is empty.
|
IO
Any other IO problem
|
NONE
When connection not failed
|
REMOTE_SERVER_HIGH_LOADED
When remote server is high loaded, response time expired.
|
REMOTE_SERVER_IS_DOWN
When remote server is down
|
Modifier and Type | Method and Description |
---|---|
boolean |
isConnectionPoolEmpty() |
boolean |
isConnectTimeoutExpired() |
boolean |
isFailed() |
boolean |
isIOProblem() |
boolean |
isNotFailed() |
boolean |
isRemoteServerDown() |
boolean |
isRemoteServerHighLoaded() |
static ConnectionFailureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionFailureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionFailureType NONE
public static final ConnectionFailureType REMOTE_SERVER_HIGH_LOADED
public static final ConnectionFailureType CONNECT_TIMEOUT_EXPIRED
public static final ConnectionFailureType CONNECTION_POOL_IS_EMPTY
public static final ConnectionFailureType REMOTE_SERVER_IS_DOWN
public static final ConnectionFailureType IO
public static ConnectionFailureType[] values()
for (ConnectionFailureType c : ConnectionFailureType.values()) System.out.println(c);
public static ConnectionFailureType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isFailed()
public boolean isNotFailed()
public boolean isRemoteServerHighLoaded()
public boolean isConnectTimeoutExpired()
public boolean isConnectionPoolEmpty()
public boolean isRemoteServerDown()
public boolean isIOProblem()
Copyright © 2017. All rights reserved.