public interface ConnectionConfig extends ChannelConfig
Connection related configuration.| Modifier and Type | Method and Description |
|---|---|
Collection<ConnectionListener> |
getConnectionListeners()
Returns the connection's listeners else empty list if none were configured.
|
RetryPolicy |
getConnectionRecoveryPolicy()
Returns the connection's recovery policy.
|
RetryPolicy |
getConnectionRetryPolicy()
Returns the connection's retry policy.
|
ConnectionConfig |
withConnectionListeners(ConnectionListener... connectionListeners)
Sets the
connectionListeners to call on connection related events. |
ConnectionConfig |
withConnectionRecoveryPolicy(RetryPolicy recoveryPolicy)
Sets the policy to use for the recovery of Connections after an unexpected Connection closure.
|
ConnectionConfig |
withConnectionRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handling
Connection invocation errors. |
getChannelListeners, getChannelRecoveryPolicy, getChannelRetryPolicy, withChannelListeners, withChannelRecoveryPolicy, withChannelRetryPolicygetConsumerListeners, isConsumerRecoveryEnabled, withConsumerListeners, withConsumerRecoveryCollection<ConnectionListener> getConnectionListeners()
RetryPolicy getConnectionRecoveryPolicy()
RetryPolicy getConnectionRetryPolicy()
ConnectionConfig withConnectionListeners(ConnectionListener... connectionListeners)
connectionListeners to call on connection related events.ConnectionConfig withConnectionRecoveryPolicy(RetryPolicy recoveryPolicy)
ConnectionConfig withConnectionRetryPolicy(RetryPolicy retryPolicy)
Connection invocation errors.Copyright © 2013. All rights reserved.