Class FailoverProvider.CreateConnectionRequest
java.lang.Object
org.apache.qpid.jms.provider.WrappedAsyncResult
org.apache.qpid.jms.provider.failover.FailoverProvider.FailoverRequest
org.apache.qpid.jms.provider.failover.FailoverProvider.CreateConnectionRequest
- All Implemented Interfaces:
Runnable,AsyncResult
- Enclosing class:
- FailoverProvider
protected abstract class FailoverProvider.CreateConnectionRequest
extends FailoverProvider.FailoverRequest
Captures 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.
-
Field Summary
Fields inherited from class org.apache.qpid.jms.provider.failover.FailoverProvider.FailoverRequest
activeProvider, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(ProviderException result) If the operation fails this method is invoked with the Exception that caused the failure.voidIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.voidMethods inherited from class org.apache.qpid.jms.provider.failover.FailoverProvider.FailoverRequest
createOfflineFailureException, createTimedOutException, doTask, failureWhenOffline, isExpired, run, succeedsWhenOfflineMethods inherited from class org.apache.qpid.jms.provider.WrappedAsyncResult
getWrappedRequest, isComplete
-
Constructor Details
-
CreateConnectionRequest
-
-
Method Details
-
onSuccess
public void onSuccess()Description copied from interface:AsyncResultIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.- Specified by:
onSuccessin interfaceAsyncResult- Overrides:
onSuccessin classFailoverProvider.FailoverRequest
-
onFailure
Description copied from interface:AsyncResultIf the operation fails this method is invoked with the Exception that caused the failure.- Specified by:
onFailurein interfaceAsyncResult- Overrides:
onFailurein classFailoverProvider.FailoverRequest- Parameters:
result- The error that resulted in this asynchronous operation failing.
-
signalConnected
public void signalConnected()
-