public static enum Connection.FailoverStatus extends Enum<Connection.FailoverStatus>
Connection#doFailoverOnException(String, int)
method.| Enum Constant and Description |
|---|
NEW_SERVER
failover to a new server
|
NONE
no failover to be done
|
RETRY
retry to the same server
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNone() |
static Connection.FailoverStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.FailoverStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.FailoverStatus NONE
public static final Connection.FailoverStatus NEW_SERVER
public static final Connection.FailoverStatus RETRY
public static Connection.FailoverStatus[] values()
for (Connection.FailoverStatus c : Connection.FailoverStatus.values()) System.out.println(c);
public static Connection.FailoverStatus 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 isNone()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.