Enum Class RemoteServers.RemoteServer.ConnectionOption
- All Implemented Interfaces:
Serializable
,Comparable<RemoteServers.RemoteServer.ConnectionOption>
,Constable
- Enclosing interface:
- RemoteServers.RemoteServer
RemoteServers.SecondaryServer
s.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies the connection timeout session attribute value (in milliseconds).Specifies the input buffer size session attribute.Specifies the maximum queue size session attribute.Specifies the output buffer size session attribute.Specifies the reconnection timeout session attribute.Specifies the recovery buffer size session attribute.Specifies the delay after losing a connection before attempting a reconnection.Specifies the write timeout session attribute value (in milliseconds). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RECONNECTION_TIMEOUT
Specifies the reconnection timeout session attribute.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. -
RETRY_DELAY
Specifies the delay after losing a connection before attempting a reconnection.The value is specified in milliseconds. Default 1000 (1 second).
This value cannot be supplied for a
SECONDARY_ACCEPTOR
server. -
RECOVERY_BUFFER_SIZE
Specifies the recovery buffer size session attribute.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. -
INPUT_BUFFER_SIZE
Specifies the input buffer size session attribute.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.
-
OUTPUT_BUFFER_SIZE
Specifies the output buffer size session attribute.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.
-
MAXIMUM_QUEUE_SIZE
Specifies the maximum queue size session attribute.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.
-
CONNECTION_TIMEOUT
Specifies the connection timeout session attribute value (in milliseconds).If a value is not specified
DEFAULT_CONNECTION_TIMEOUT
is used. -
WRITE_TIMEOUT
Specifies the write timeout session attribute value (in milliseconds).If a value is not specified
DEFAULT_WRITE_TIMEOUT
is used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-