public static enum Connection.Property extends Enum<Connection.Property>
Connection
that can be
specified by the User.Enum Constant and Description |
---|
CONNECTION_CLASS
if specified, is used to create the new connection
|
CONNECTION_FACTORY
if specified, is used to create the new connection.
|
CREDENTIAL
the password used
|
DB
The db selected on (re-)connect
|
HOST
the redis server host name or ip
|
MAX_CONNECT_ATTEMPT
number of reconnect attempts after timeouts or faults.
|
MAX_CONNECT_WAIT
On Connect (or reconnect after faults or timeouts) the maximum duration that you are willing to wait, milliseconds
|
MODALITY
Defines the
Connection 's Connection.Modality |
PORT
the Redis server port
|
PROTOCOL_CLASS
if specified, is used to create the new protocol
|
PROTOCOL_FACTORY
if specified, is used to create the new protocol
|
Modifier and Type | Method and Description |
---|---|
static Connection.Property |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.Property[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.Property HOST
public static final Connection.Property PORT
public static final Connection.Property CREDENTIAL
public static final Connection.Property DB
public static final Connection.Property MODALITY
Connection
's Connection.Modality
public static final Connection.Property MAX_CONNECT_WAIT
public static final Connection.Property MAX_CONNECT_ATTEMPT
public static final Connection.Property PROTOCOL_CLASS
public static final Connection.Property PROTOCOL_FACTORY
public static final Connection.Property CONNECTION_CLASS
public static final Connection.Property CONNECTION_FACTORY
public static Connection.Property[] values()
for (Connection.Property c : Connection.Property.values()) System.out.println(c);
public static Connection.Property 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 nullCopyright © 2009–2016. All rights reserved.