public class MessageConsumeCallback extends Object implements Callback<Void>
Constructor and Description |
---|
MessageConsumeCallback(ClientConfiguration cfg,
HChannelManager channelManager) |
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,
Void resultOfOperation)
This method is called when the asynchronous operation finishes
|
public MessageConsumeCallback(ClientConfiguration cfg, HChannelManager channelManager)
public void operationFinished(Object ctx, Void resultOfOperation)
Callback
operationFinished
in interface Callback<Void>
public void operationFailed(Object ctx, PubSubException exception)
Callback
operationFailed
in interface Callback<Void>
ctx
- The context for the callbackexception
- The reason for the failure of the scanCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.