public static enum RemoteServers.RemoteServer.ConnectionOption extends Enum<RemoteServers.RemoteServer.ConnectionOption>
RemoteServers.SecondaryServer
s.Enum Constant and Description |
---|
CONNECTION_TIMEOUT
Specifies the connection timeout session attribute value (in
milliseconds).
|
INPUT_BUFFER_SIZE
Specifies the input buffer size session attribute.
|
MAXIMUM_QUEUE_SIZE
Specifies the maximum queue size session attribute.
|
OUTPUT_BUFFER_SIZE
Specifies the output buffer size session attribute.
|
RECONNECTION_TIMEOUT
Specifies the reconnection timeout session attribute.
|
RECOVERY_BUFFER_SIZE
Specifies the recovery buffer size session attribute.
|
RETRY_DELAY
Specifies the delay after losing a connection before attempting a
reconnection.
|
WRITE_TIMEOUT
Specifies the write timeout session attribute value (in
milliseconds).
|
Modifier and Type | Method and Description |
---|---|
static RemoteServers.RemoteServer.ConnectionOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemoteServers.RemoteServer.ConnectionOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemoteServers.RemoteServer.ConnectionOption RECONNECTION_TIMEOUT
This is the total time in milliseconds that will be allowed to reconnect a failed connection.
For reconnection to work the remote server connector must have been configured to support reconnection.
If a value is not specified
DEFAULT_RECONNECTION_TIMEOUT
is used.
This value cannot be supplied for a
SECONDARY_ACCEPTOR
server.
public static final RemoteServers.RemoteServer.ConnectionOption RETRY_DELAY
The value is specified in milliseconds. Default 1000 (1 second).
This value cannot be supplied for a
SECONDARY_ACCEPTOR
server.
public static final RemoteServers.RemoteServer.ConnectionOption RECOVERY_BUFFER_SIZE
If the remote server is configured to support reconnection, a session established with a non-zero reconnect-timeout retains a buffer of sent messages. If the session disconnects and reconnects, this buffer is used to re-send messages that the server has not received.
The default value is 10,000 messages. If reconnect-timeout is 0 then this value is ignored.
This value cannot be supplied for a
SECONDARY_ACCEPTOR
server.
public static final RemoteServers.RemoteServer.ConnectionOption INPUT_BUFFER_SIZE
This is the size of the input buffer to use for the connection with the remote server. It is used to receive messages from the remote server. This should be set to the same size as the output buffer used at the remote server.
If not specified, a default of 1024k is used.
public static final RemoteServers.RemoteServer.ConnectionOption OUTPUT_BUFFER_SIZE
This is the size of the output buffer to use for the connection with the remote server. It is used to send messages to the remote server. This should be set to the same size as the input buffer used by the remote server.
If not specified, a default of 1024k is used.
public static final RemoteServers.RemoteServer.ConnectionOption MAXIMUM_QUEUE_SIZE
This is the maximum number of messages that can be queued to send to the remote server. If this number is exceeded, the connection will be closed. This must be sufficient to cater for messages that may be queued whilst disconnected (awaiting reconnect).
The default value is 10,000 messages.
public static final RemoteServers.RemoteServer.ConnectionOption CONNECTION_TIMEOUT
If a value is not specified
DEFAULT_CONNECTION_TIMEOUT
is used.
public static final RemoteServers.RemoteServer.ConnectionOption WRITE_TIMEOUT
If a value is not specified
DEFAULT_WRITE_TIMEOUT
is used.
public static RemoteServers.RemoteServer.ConnectionOption[] values()
for (RemoteServers.RemoteServer.ConnectionOption c : RemoteServers.RemoteServer.ConnectionOption.values()) System.out.println(c);
public static RemoteServers.RemoteServer.ConnectionOption 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 © 2024 DiffusionData Ltd. All Rights Reserved.