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.
|
RecoveryPolicy |
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(RecoveryPolicy 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, isExchangeRecoveryEnabled, isQueueRecoveryEnabled, withChannelListeners, withChannelRecoveryPolicy, withChannelRetryPolicy, withExchangeRecovery, withQueueRecovery
getConsumerListeners, isConsumerRecoveryEnabled, withConsumerListeners, withConsumerRecovery
Collection<ConnectionListener> getConnectionListeners()
RecoveryPolicy getConnectionRecoveryPolicy()
RetryPolicy getConnectionRetryPolicy()
withConnectionRetryPolicy(RetryPolicy)
ConnectionConfig withConnectionListeners(ConnectionListener... connectionListeners)
connectionListeners
to call on connection related events.ConnectionConfig withConnectionRecoveryPolicy(RecoveryPolicy recoveryPolicy)
ConnectionConfig withConnectionRetryPolicy(RetryPolicy retryPolicy)
Connection
invocation errors.Copyright © 2016. All rights reserved.