public interface Callback<T>
| Modifier and Type | Method and Description |
|---|---|
void |
operationFailed(Object ctx,
PubSubException exception)
This method is called when the operation failed due to some reason.
|
void |
operationFinished(Object ctx,
T resultOfOperation)
This method is called when the asynchronous operation finishes
|
void operationFinished(Object ctx, T resultOfOperation)
ctx - resultOfOperation - void operationFailed(Object ctx, PubSubException exception)
ctx - The context for the callbackexception - The reason for the failure of the scanCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.