protected abstract class FailoverProvider.FailoverRequest extends WrappedAsyncResult implements Runnable
| Constructor and Description |
|---|
FailoverProvider.FailoverRequest(AsyncResult watcher) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doTask()
Called to execute the specific task that was requested.
|
boolean |
failureWhenOffline()
When the transport is not connected should this request automatically fail.
|
void |
onFailure(Throwable 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 |
run() |
boolean |
succeedsWhenOffline()
Should the request just succeed when the Provider is not connected.
|
getWrappedRequest, isCompletepublic FailoverProvider.FailoverRequest(AsyncResult watcher)
public void onFailure(Throwable result)
AsyncResultonFailure in interface AsyncResultonFailure in class WrappedAsyncResultresult - The error that resulted in this asynchronous operation failing.public void onSuccess()
AsyncResultonSuccess in interface AsyncResultonSuccess in class WrappedAsyncResultpublic abstract void doTask()
throws Exception
Exception - if an error occurs during task execution.public boolean succeedsWhenOffline()
public boolean failureWhenOffline()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.