public static enum Connection.Flag extends Enum<Connection.Flag>
Enum Constant and Description |
---|
CONNECT_IMMEDIATELY
if true will connect immediately on initialization.
|
PIPELINE
if true uses pipelining
|
RELIABLE
if true attempts to maintain connection.
|
SHARED
Connection can be used by more than 1 client concurrently
|
STATEFUL
if true connection maintains conversational state - for use with multi-exec
|
TRACE
if true service requests are logged (verbose/slower due to io)
|
Modifier and Type | Field and Description |
---|---|
int |
bitmask |
Modifier and Type | Method and Description |
---|---|
static int |
bitclear(int bitset,
Connection.Flag... flags) |
static int |
bitset(Connection.Flag... flags) |
static int |
bitset(int bitset,
Connection.Flag... flags) |
static boolean |
isSet(int bitset,
Connection.Flag flag) |
static Connection.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.Flag CONNECT_IMMEDIATELY
public static final Connection.Flag PIPELINE
public static final Connection.Flag SHARED
public static final Connection.Flag RELIABLE
public static final Connection.Flag STATEFUL
public static final Connection.Flag TRACE
public static Connection.Flag[] values()
for (Connection.Flag c : Connection.Flag.values()) System.out.println(c);
public static Connection.Flag 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 static final int bitset(Connection.Flag... flags)
public static final int bitset(int bitset, Connection.Flag... flags)
public static final int bitclear(int bitset, Connection.Flag... flags)
public static boolean isSet(int bitset, Connection.Flag flag)
Copyright © 2009–2017. All rights reserved.