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:
java.lang.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 void
onFailure(ProviderException result)
If the operation fails this method is invoked with the Exception that caused the failure.void
onSuccess()
If the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.void
signalConnected()
-
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:AsyncResult
If the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.- Specified by:
onSuccess
in interfaceAsyncResult
- Overrides:
onSuccess
in classFailoverProvider.FailoverRequest
-
onFailure
public void onFailure(ProviderException result)
Description copied from interface:AsyncResult
If the operation fails this method is invoked with the Exception that caused the failure.- Specified by:
onFailure
in interfaceAsyncResult
- Overrides:
onFailure
in classFailoverProvider.FailoverRequest
- Parameters:
result
- The error that resulted in this asynchronous operation failing.
-
signalConnected
public void signalConnected()
-
-