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 Constructor Description CreateConnectionRequest(AsyncResult watcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFailure(ProviderException result)If the operation fails this method is invoked with the Exception that caused the failure.voidonSuccess()If the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.voidsignalConnected()-
Methods inherited from class org.apache.qpid.jms.provider.failover.FailoverProvider.FailoverRequest
createOfflineFailureException, createTimedOutException, doTask, failureWhenOffline, isExpired, run, succeedsWhenOffline
-
Methods inherited from class org.apache.qpid.jms.provider.WrappedAsyncResult
getWrappedRequest, isComplete
-
-
-
-
Constructor Detail
-
CreateConnectionRequest
public CreateConnectionRequest(AsyncResult watcher)
-
-
Method Detail
-
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
public void onFailure(ProviderException result)
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()
-
-