Class FailoverProvider
- java.lang.Object
-
- org.apache.qpid.jms.provider.DefaultProviderListener
-
- org.apache.qpid.jms.provider.failover.FailoverProvider
-
- All Implemented Interfaces:
Provider,ProviderListener
public class FailoverProvider extends DefaultProviderListener implements Provider
A Provider Facade that provides services for detection dropped Provider connections and attempting to reconnect to a different remote peer. Upon establishment of a new connection the FailoverProvider will initiate state recovery of the active JMS framework resources.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classFailoverProvider.CreateConnectionRequestCaptures the initial request to create a JmsConnectionInfo based resources and ensures that if the connection is successfully established that the connection established event is triggered once before moving on to sending only connection interrupted and restored events.protected classFailoverProvider.FailoverRequestFor all requests that are dispatched from the FailoverProvider to a connected Provider instance an instance of FailoverRequest is used to handle errors that occur during processing of that request and trigger a reconnect.protected classFailoverProvider.FailoverRequestSweeper
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_INITIAL_RECONNECT_DELAYstatic intDEFAULT_MAX_RECONNECT_ATTEMPTSstatic longDEFAULT_MAX_RECONNECT_DELAYstatic doubleDEFAULT_RECONNECT_BACKOFF_MULTIPLIERstatic longDEFAULT_RECONNECT_DELAYstatic intDEFAULT_STARTUP_MAX_RECONNECT_ATTEMPTSstatic booleanDEFAULT_USE_RECONNECT_BACKOFFstatic intDEFAULT_WARN_AFTER_RECONNECT_ATTEMPTSstatic intUNLIMITED
-
Constructor Summary
Constructors Constructor Description FailoverProvider(List<URI> uris, Map<String,String> nestedOptions, ProviderFutureFactory futureFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledge(JmsInboundMessageDispatch envelope, ProviderConstants.ACK_TYPE ackType, AsyncResult request)Called to acknowledge a JmsMessage has been delivered, consumed, re-delivered...etc.voidacknowledge(JmsSessionId sessionId, ProviderConstants.ACK_TYPE ackType, AsyncResult request)Called to acknowledge all messages that have been delivered in a given session.voidadd(URI uri)protected voidcheckClosed()voidclose()Closes this Provider terminating all connections and canceling any pending operations.voidcommit(JmsTransactionInfo transactionInfo, JmsTransactionInfo nextTransactionInfo, AsyncResult request)Called to commit an open transaction, and start a new one if a new transaction info object is provided.voidconnect(JmsConnectionInfo connectionInfo)Performs the initial low level connection for this provider such as TCP or SSL connection to a remote Broker.voidcreate(JmsResource resource, AsyncResult request)Create the Provider version of the given JmsResource.voiddestroy(JmsResource resourceId, AsyncResult request)Instruct the Provider to dispose of a given JmsResource.List<URI>getAlternateURIs()Returns aListof alternate remote peers (possibly found via discovery) to which the caller can attempt a recoonect should this provider connection fail.StringgetAmqpOpenServerListAction()longgetCloseTimeout()longgetInitialReconnectDelay()intgetMaxReconnectAttempts()longgetMaxReconnectDelay()JmsMessageFactorygetMessageFactory()Gets the Provider specific Message factory for use in the JMS layer when a Session is asked to create a Message type.Map<String,String>getNestedOptions()ProviderListenergetProviderListener()Gets the currently set ProdiverListener instance.doublegetReconnectBackOffMultiplier()longgetReconnectDelay()URIgetRemoteURI()Returns the URI used to configure this Provider and specify the remote address of the Broker it connects to.protected longgetRequestSweeperInterval()longgetRequestTimeout()longgetSendTimeout()intgetStartupMaxReconnectAttempts()intgetWarnAfterReconnectAttempts()Gets the current setting controlling how many Connect / Reconnect attempts must occur before a warn message is logged.booleanisRandomize()booleanisUseReconnectBackOff()ProviderFuturenewProviderFuture()Gets a ProviderFuture instance from the Provider for use in performing Provider calls that require an asynchronous completion to know when the call to the provider has succeeded or failed.ProviderFuturenewProviderFuture(ProviderSynchronization synchronization)Gets a ProviderFuture instance from the Provider for use in performing Provider calls that require an asynchronous completion to know when the call to the provider has succeeded or failed.voidonCompletedMessageSend(JmsOutboundMessageDispatch envelope)Called when an outbound message dispatch that requested a completion callback has reached a state where the send can be considered successful based on the QoS level associated of the outbound message.voidonConnectionFailure(ProviderException ex)Called to indicate that the underlying connection to the Broker has been lost and the Provider will not perform any reconnect.voidonFailedMessageSend(JmsOutboundMessageDispatch envelope, ProviderException cause)Called when an outbound message dispatch that requested a completion callback has reached a state where the send can be considered failed.voidonInboundMessage(JmsInboundMessageDispatch envelope)Called when a new Message has arrived for a registered consumer.voidonProviderException(ProviderException ex)Called to indicate that a some client operation caused or received an error that is not considered fatal at the provider level.voidonResourceClosed(JmsResource resource, ProviderException cause)Called to indicate that a currently active resource has been closed due to some error condition, management request or some other action.voidpull(JmsConsumerId consumerId, long timeout, AsyncResult request)Request a remote peer send a Message to this client.voidrecover(JmsSessionId sessionId, AsyncResult request)Called to recover all unacknowledged messages for a Session in client Ack mode.voidremove(URI uri)voidrollback(JmsTransactionInfo transactionInfo, JmsTransactionInfo nextTransactionInfo, AsyncResult request)Called to roll back an open transaction, and start a new one if a new transaction info object is provided.voidsend(JmsOutboundMessageDispatch envelope, AsyncResult request)Sends the JmsMessage contained in the outbound dispatch envelope.voidsetAmqpOpenServerListAction(String amqpOpenServerListAction)voidsetInitialReconnectDelay(long initialReconnectDelay)voidsetMaxReconnectAttempts(int maxReconnectAttempts)voidsetMaxReconnectDelay(long maxReconnectDelay)voidsetProviderListener(ProviderListener listener)Sets the listener of events from this Provider instance.voidsetRandomize(boolean value)voidsetReconnectBackOffMultiplier(double reconnectBackOffMultiplier)voidsetReconnectDelay(long reconnectDealy)voidsetStartupMaxReconnectAttempts(int startupMaxReconnectAttempts)voidsetUseReconnectBackOff(boolean useReconnectBackOff)voidsetWarnAfterReconnectAttempts(int warnAfterReconnectAttempts)Sets the number of Connect / Reconnect attempts that must occur before a warn message is logged indicating that the transport is not connected.voidstart()Starts the Provider.voidstart(JmsResource resource, AsyncResult request)Starts the Provider version of the given JmsResource.voidstop(JmsResource resource, AsyncResult request)Stops (pauses) the Provider version of the given JmsResource, the resource would then need to be started again via a call tostart()For some JMS Resources it is necessary or advantageous to have a stopped state that can be triggered to stop the resource generating new events or messages.StringtoString()voidunsubscribe(String subscription, AsyncResult request)Remove a durable topic subscription by name.-
Methods inherited from class org.apache.qpid.jms.provider.DefaultProviderListener
onConnectionEstablished, onConnectionInterrupted, onConnectionRecovered, onConnectionRecovery, onConnectionRestored
-
-
-
-
Field Detail
-
UNLIMITED
public static final int UNLIMITED
- See Also:
- Constant Field Values
-
DEFAULT_MAX_RECONNECT_ATTEMPTS
public static final int DEFAULT_MAX_RECONNECT_ATTEMPTS
- See Also:
- Constant Field Values
-
DEFAULT_STARTUP_MAX_RECONNECT_ATTEMPTS
public static final int DEFAULT_STARTUP_MAX_RECONNECT_ATTEMPTS
- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_RECONNECT_DELAY
public static final long DEFAULT_INITIAL_RECONNECT_DELAY
- See Also:
- Constant Field Values
-
DEFAULT_RECONNECT_DELAY
public static final long DEFAULT_RECONNECT_DELAY
- See Also:
- Constant Field Values
-
DEFAULT_MAX_RECONNECT_DELAY
public static final long DEFAULT_MAX_RECONNECT_DELAY
-
DEFAULT_USE_RECONNECT_BACKOFF
public static final boolean DEFAULT_USE_RECONNECT_BACKOFF
- See Also:
- Constant Field Values
-
DEFAULT_RECONNECT_BACKOFF_MULTIPLIER
public static final double DEFAULT_RECONNECT_BACKOFF_MULTIPLIER
- See Also:
- Constant Field Values
-
DEFAULT_WARN_AFTER_RECONNECT_ATTEMPTS
public static final int DEFAULT_WARN_AFTER_RECONNECT_ATTEMPTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
connect
public void connect(JmsConnectionInfo connectionInfo) throws ProviderException
Description copied from interface:ProviderPerforms the initial low level connection for this provider such as TCP or SSL connection to a remote Broker. If this operation fails then the Provider is considered to be unusable and no further operations should be attempted using this Provider.- Specified by:
connectin interfaceProvider- Parameters:
connectionInfo- The JmsConnectionInfo that contains the properties that define this connection.- Throws:
ProviderException- if the remote resource can not be contacted.
-
start
public void start() throws ProviderException, IllegalStateExceptionDescription copied from interface:ProviderStarts the Provider. The start method provides a place for the Provider to perform and pre-start configuration checks to ensure that the current state is valid and that all contracts have been met prior to starting.- Specified by:
startin interfaceProvider- Throws:
ProviderException- if an error occurs during start processing.IllegalStateException- if the Provider is improperly configured.
-
close
public void close()
Description copied from interface:ProviderCloses this Provider terminating all connections and canceling any pending operations. The Provider is considered unusable after this call. This call is a blocking call and will not return until the Provider has closed or an error occurs.
-
create
public void create(JmsResource resource, AsyncResult request) throws ProviderException
Description copied from interface:ProviderCreate the Provider version of the given JmsResource. For each JMS Resource type the Provider implementation must create it's own internal representation and upon successful creation provide the caller with a response. The Provider should examine the given JmsResource to determine if the given configuration is supported or can be simulated, or is not supported in which case an exception should be thrown. It is possible for a Provider to indicate that it cannot complete a requested create either due to some mis-configuration such as bad login credentials on connection create by throwing a JMSException. If the Provider does not support creating of the indicated resource such as a Temporary Queue etc the provider may throw an UnsupportedOperationException to indicate this.- Specified by:
createin interfaceProvider- Parameters:
resource- The JmsResouce instance that indicates what is being created.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
start
public void start(JmsResource resource, AsyncResult request) throws ProviderException
Description copied from interface:ProviderStarts the Provider version of the given JmsResource. For some JMS Resources it is necessary or advantageous to have a started state that must be triggered prior to it's normal use. An example of this would be a MessageConsumer which should not receive any incoming messages until the JMS layer is in a state to handle them. One such time would be after connection recovery. A JMS consumer should normally recover with it's prefetch value set to zero, or an AMQP link credit of zero and only open up the credit window once all Connection resources are restored. The provider is required to implement this method and not throw any error other than an ProviderException if a communication error occurs. The start operation is not required to have any effect on the provider resource but must not throw UnsupportedOperation etc.- Specified by:
startin interfaceProvider- Parameters:
resource- The JmsResouce instance that indicates what is being started.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
stop
public void stop(JmsResource resource, AsyncResult request) throws ProviderException
Description copied from interface:ProviderStops (pauses) the Provider version of the given JmsResource, the resource would then need to be started again via a call tostart()For some JMS Resources it is necessary or advantageous to have a stopped state that can be triggered to stop the resource generating new events or messages. An example of this would be a JMS Session which should not receive any incoming messages for any consumers until the JMS layer is in a state to handle them. One such time would be during a transaction rollback. A JMS Session should normally ensure that messages received in a transaction are set to be redelivered prior to any new deliveries on a transaction rollback. The provider is required to implement this method and not throw any error other than an ProviderException if a communication error occurs. The stop operation is not required to have any effect on the provider resource but must not throw UnsupportedOperation etc.- Specified by:
stopin interfaceProvider- Parameters:
resource- The JmsResouce instance that indicates what is being stopped.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
destroy
public void destroy(JmsResource resourceId, AsyncResult request) throws ProviderException
Description copied from interface:ProviderInstruct the Provider to dispose of a given JmsResource. The provider is given a JmsResource which it should use to remove any associated resources and inform the remote Broker instance of the removal of this resource. If the Provider cannot destroy the resource due to a non-communication error such as the logged in user not have role access to destroy the given resource it may throw an instance of JMSException to indicate such an error.- Specified by:
destroyin interfaceProvider- Parameters:
resourceId- The JmsResouce that identifies a previously created JmsResource.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
send
public void send(JmsOutboundMessageDispatch envelope, AsyncResult request) throws ProviderException
Description copied from interface:ProviderSends the JmsMessage contained in the outbound dispatch envelope.- Specified by:
sendin interfaceProvider- Parameters:
envelope- the message envelope containing the JmsMessage to send.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
acknowledge
public void acknowledge(JmsSessionId sessionId, ProviderConstants.ACK_TYPE ackType, AsyncResult request) throws ProviderException
Description copied from interface:ProviderCalled to acknowledge all messages that have been delivered in a given session. This method is typically used by a Session that is configured for client acknowledge mode. The acknowledgement should only be applied to Messages that have been marked as delivered and not those still awaiting dispatch.- Specified by:
acknowledgein interfaceProvider- Parameters:
sessionId- the ID of the Session whose delivered messages should be acknowledged.ackType- The type of acknowledgement being done.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
acknowledge
public void acknowledge(JmsInboundMessageDispatch envelope, ProviderConstants.ACK_TYPE ackType, AsyncResult request) throws ProviderException
Description copied from interface:ProviderCalled to acknowledge a JmsMessage has been delivered, consumed, re-delivered...etc. The provider should perform an acknowledgement for the message based on the configured mode of the consumer that it was dispatched to and the capabilities of the protocol.- Specified by:
acknowledgein interfaceProvider- Parameters:
envelope- The message dispatch envelope containing the Message delivery information.ackType- The type of acknowledgement being done.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
commit
public void commit(JmsTransactionInfo transactionInfo, JmsTransactionInfo nextTransactionInfo, AsyncResult request) throws ProviderException
Description copied from interface:ProviderCalled to commit an open transaction, and start a new one if a new transaction info object is provided. If this method throws an exception it is either because the commit failed, or the start of the next transaction failed. The caller can investigate the state of the provided next transaction object to determine if a new transaction was created. If the provider is unable to support transactions then it should throw an UnsupportedOperationException to indicate this. The Provider may also throw a JMSException to indicate a transaction was already rolled back etc.- Specified by:
commitin interfaceProvider- Parameters:
transactionInfo- the transaction info that describes the transaction being committed.nextTransactionInfo- the transaction info that describes the new transaction that should be created.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
rollback
public void rollback(JmsTransactionInfo transactionInfo, JmsTransactionInfo nextTransactionInfo, AsyncResult request) throws ProviderException
Description copied from interface:ProviderCalled to roll back an open transaction, and start a new one if a new transaction info object is provided. If this method throws an exception it is either because the commit failed, or the start of the next transaction failed. The caller can investigate the state of the provided next transaction object to determine if a new transaction was created.- Specified by:
rollbackin interfaceProvider- Parameters:
transactionInfo- the transaction info that describes the transaction being rolled back.nextTransactionInfo- the transaction info that describes the new transaction that should be created.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
recover
public void recover(JmsSessionId sessionId, AsyncResult request) throws ProviderException
Description copied from interface:ProviderCalled to recover all unacknowledged messages for a Session in client Ack mode.- Specified by:
recoverin interfaceProvider- Parameters:
sessionId- the Id of the JmsSession that is recovering unacknowledged messages..request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
unsubscribe
public void unsubscribe(String subscription, AsyncResult request) throws ProviderException
Description copied from interface:ProviderRemove a durable topic subscription by name. A provider can throw an instance of JMSException to indicate that it cannot perform the un-subscribe operation due to bad security credentials etc.- Specified by:
unsubscribein interfaceProvider- Parameters:
subscription- the name of the durable subscription that is to be removed.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
pull
public void pull(JmsConsumerId consumerId, long timeout, AsyncResult request) throws ProviderException
Description copied from interface:ProviderRequest a remote peer send a Message to this client. A message pull request is usually only needed in the case where the client sets a zero prefetch limit on the consumer. If the consumer has a set prefetch that's greater than zero this method should just return without performing any action. timeout < 0 then it should remain open until a message is received. timeout = 0 then it returns a message or null if none available timeout > 0 then it should remain open for timeout amount of time. The timeout value when positive is given in milliseconds.- Specified by:
pullin interfaceProvider- Parameters:
consumerId- the ID of the Consumer instance that is attempt to pull a message from the remote.timeout- the amount of time to tell the remote peer to keep this pull request valid.request- The request object that should be signaled when this operation completes.- Throws:
ProviderException- if an error occurs or the Provider is already closed.
-
getMessageFactory
public JmsMessageFactory getMessageFactory()
Description copied from interface:ProviderGets the Provider specific Message factory for use in the JMS layer when a Session is asked to create a Message type. The Provider should implement it's own internal JmsMessage core to optimize read / write and marshal operations for the connection.- Specified by:
getMessageFactoryin interfaceProvider- Returns:
- a JmsMessageFactory instance for use by the JMS layer.
-
checkClosed
protected void checkClosed() throws ProviderException- Throws:
ProviderException
-
onInboundMessage
public void onInboundMessage(JmsInboundMessageDispatch envelope)
Description copied from interface:ProviderListenerCalled when a new Message has arrived for a registered consumer.- Specified by:
onInboundMessagein interfaceProviderListener- Overrides:
onInboundMessagein classDefaultProviderListener- Parameters:
envelope- The dispatch object containing the message and delivery information.
-
onCompletedMessageSend
public void onCompletedMessageSend(JmsOutboundMessageDispatch envelope)
Description copied from interface:ProviderListenerCalled when an outbound message dispatch that requested a completion callback has reached a state where the send can be considered successful based on the QoS level associated of the outbound message.- Specified by:
onCompletedMessageSendin interfaceProviderListener- Overrides:
onCompletedMessageSendin classDefaultProviderListener- Parameters:
envelope- the original outbound message dispatch that is now complete.
-
onFailedMessageSend
public void onFailedMessageSend(JmsOutboundMessageDispatch envelope, ProviderException cause)
Description copied from interface:ProviderListenerCalled when an outbound message dispatch that requested a completion callback has reached a state where the send can be considered failed.- Specified by:
onFailedMessageSendin interfaceProviderListener- Overrides:
onFailedMessageSendin classDefaultProviderListener- Parameters:
envelope- the original outbound message dispatch that should be treated as a failed send.cause- the exception that describes the cause of the failed send.
-
onConnectionFailure
public void onConnectionFailure(ProviderException ex)
Description copied from interface:ProviderListenerCalled to indicate that the underlying connection to the Broker has been lost and the Provider will not perform any reconnect. Following this call the provider is in a failed state and further calls to it will throw an Exception.- Specified by:
onConnectionFailurein interfaceProviderListener- Overrides:
onConnectionFailurein classDefaultProviderListener- Parameters:
ex- The exception that indicates the cause of this Provider failure.
-
onResourceClosed
public void onResourceClosed(JmsResource resource, ProviderException cause)
Description copied from interface:ProviderListenerCalled to indicate that a currently active resource has been closed due to some error condition, management request or some other action. This can either be initiated remotely or locally depending on the condition that triggers the close.- Specified by:
onResourceClosedin interfaceProviderListener- Overrides:
onResourceClosedin classDefaultProviderListener- Parameters:
resource- the JmsResource instance that has been closed.cause- optional exception object that indicates the cause of the close.
-
onProviderException
public void onProviderException(ProviderException ex)
Description copied from interface:ProviderListenerCalled to indicate that a some client operation caused or received an error that is not considered fatal at the provider level.- Specified by:
onProviderExceptionin interfaceProviderListener- Overrides:
onProviderExceptionin classDefaultProviderListener- Parameters:
ex- the exception object that is being reported to the listener.
-
add
public void add(URI uri)
-
remove
public void remove(URI uri)
-
getRemoteURI
public URI getRemoteURI()
Description copied from interface:ProviderReturns the URI used to configure this Provider and specify the remote address of the Broker it connects to.- Specified by:
getRemoteURIin interfaceProvider- Returns:
- the URI used to configure this Provider.
-
getAlternateURIs
public List<URI> getAlternateURIs()
Description copied from interface:ProviderReturns aListof alternate remote peers (possibly found via discovery) to which the caller can attempt a recoonect should this provider connection fail. If there are no known alternates this method returns an emptyList.- Specified by:
getAlternateURIsin interfaceProvider- Returns:
- a List or alternate remote URIs that could be connected to later.
-
setProviderListener
public void setProviderListener(ProviderListener listener)
Description copied from interface:ProviderSets the listener of events from this Provider instance.- Specified by:
setProviderListenerin interfaceProvider- Parameters:
listener- The listener instance that will receive all event callbacks.
-
getProviderListener
public ProviderListener getProviderListener()
Description copied from interface:ProviderGets the currently set ProdiverListener instance.- Specified by:
getProviderListenerin interfaceProvider- Returns:
- the currently set ProviderListener instance.
-
isRandomize
public boolean isRandomize()
-
setRandomize
public void setRandomize(boolean value)
-
getInitialReconnectDelay
public long getInitialReconnectDelay()
-
setInitialReconnectDelay
public void setInitialReconnectDelay(long initialReconnectDelay)
-
getReconnectDelay
public long getReconnectDelay()
-
setReconnectDelay
public void setReconnectDelay(long reconnectDealy)
-
getMaxReconnectDelay
public long getMaxReconnectDelay()
-
setMaxReconnectDelay
public void setMaxReconnectDelay(long maxReconnectDelay)
-
getMaxReconnectAttempts
public int getMaxReconnectAttempts()
-
setMaxReconnectAttempts
public void setMaxReconnectAttempts(int maxReconnectAttempts)
-
getStartupMaxReconnectAttempts
public int getStartupMaxReconnectAttempts()
-
setStartupMaxReconnectAttempts
public void setStartupMaxReconnectAttempts(int startupMaxReconnectAttempts)
-
getWarnAfterReconnectAttempts
public int getWarnAfterReconnectAttempts()
Gets the current setting controlling how many Connect / Reconnect attempts must occur before a warn message is logged. A value of <= 0 indicates that there will be no warn message logged regardless of how many reconnect attempts occur.- Returns:
- the current number of connection attempts before warn logging is triggered.
-
setWarnAfterReconnectAttempts
public void setWarnAfterReconnectAttempts(int warnAfterReconnectAttempts)
Sets the number of Connect / Reconnect attempts that must occur before a warn message is logged indicating that the transport is not connected. This can be useful when the client is running inside some container or service as it gives an indication of some problem with the client connection that might not otherwise be visible. To disable the log messages this value should be set to a value <= 0- Parameters:
warnAfterReconnectAttempts- The number of failed connection attempts that must happen before a warning is logged.
-
getReconnectBackOffMultiplier
public double getReconnectBackOffMultiplier()
-
setReconnectBackOffMultiplier
public void setReconnectBackOffMultiplier(double reconnectBackOffMultiplier)
-
isUseReconnectBackOff
public boolean isUseReconnectBackOff()
-
setUseReconnectBackOff
public void setUseReconnectBackOff(boolean useReconnectBackOff)
-
getCloseTimeout
public long getCloseTimeout()
-
getSendTimeout
public long getSendTimeout()
-
getRequestTimeout
public long getRequestTimeout()
-
getAmqpOpenServerListAction
public String getAmqpOpenServerListAction()
-
setAmqpOpenServerListAction
public void setAmqpOpenServerListAction(String amqpOpenServerListAction)
-
newProviderFuture
public ProviderFuture newProviderFuture()
Description copied from interface:ProviderGets a ProviderFuture instance from the Provider for use in performing Provider calls that require an asynchronous completion to know when the call to the provider has succeeded or failed.- Specified by:
newProviderFuturein interfaceProvider- Returns:
- a ProviderFuture for use in calling Provider methods that require a completion object.
-
newProviderFuture
public ProviderFuture newProviderFuture(ProviderSynchronization synchronization)
Description copied from interface:ProviderGets a ProviderFuture instance from the Provider for use in performing Provider calls that require an asynchronous completion to know when the call to the provider has succeeded or failed.- Specified by:
newProviderFuturein interfaceProvider- Parameters:
synchronization- AProviderSynchronizationto assign to the resultingProviderFuture.- Returns:
- a ProviderFuture for use in calling Provider methods that require a completion object.
-
getRequestSweeperInterval
protected final long getRequestSweeperInterval()
-
-