public class PubSubCallback extends Object implements Callback<PubSubProtocol.ResponseBody>
| Constructor and Description |
|---|
PubSubCallback(PubSubData pubSubData) |
| Modifier and Type | Method and Description |
|---|---|
PubSubException |
getFailureException() |
boolean |
getIsCallSuccessful() |
PubSubProtocol.ResponseBody |
getResponseBody() |
void |
operationFailed(Object ctx,
PubSubException exception)
This method is called when the operation failed due to some reason.
|
void |
operationFinished(Object ctx,
PubSubProtocol.ResponseBody resultOfOperation)
This method is called when the asynchronous operation finishes
|
public PubSubCallback(PubSubData pubSubData)
public void operationFinished(Object ctx, PubSubProtocol.ResponseBody resultOfOperation)
CallbackoperationFinished in interface Callback<PubSubProtocol.ResponseBody>public void operationFailed(Object ctx, PubSubException exception)
CallbackoperationFailed in interface Callback<PubSubProtocol.ResponseBody>ctx - The context for the callbackexception - The reason for the failure of the scanpublic boolean getIsCallSuccessful()
public PubSubException getFailureException()
public PubSubProtocol.ResponseBody getResponseBody()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.