protected static final class AmqpConsumer.ScheduledStopRequest extends Object implements AsyncResult
Constructor and Description |
---|
ScheduledStopRequest(ScheduledFuture<?> completionTask,
AsyncResult origRequest) |
Modifier and Type | Method and Description |
---|---|
boolean |
isComplete()
Returns true if the AsyncResult has completed.
|
void |
onFailure(Throwable t)
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.
|
public ScheduledStopRequest(ScheduledFuture<?> completionTask, AsyncResult origRequest)
public void onFailure(Throwable t)
AsyncResult
onFailure
in interface AsyncResult
t
- The error that resulted in this asynchronous operation failing.public void onSuccess()
AsyncResult
onSuccess
in interface AsyncResult
public boolean isComplete()
AsyncResult
isComplete
in interface AsyncResult
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.