|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.ipc.Requestor.TransceiverCallback<T>
protected class Requestor.TransceiverCallback<T>
Handles callbacks from transceiver invocations.
| Constructor Summary | |
|---|---|
Requestor.TransceiverCallback(org.apache.avro.ipc.Requestor.Request request,
Callback<T> callback)
Creates a TransceiverCallback. |
|
| Method Summary | |
|---|---|
void |
handleError(Throwable error)
Receives an error. |
void |
handleResult(List<ByteBuffer> responseBytes)
Receives a callback result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Requestor.TransceiverCallback(org.apache.avro.ipc.Requestor.Request request,
Callback<T> callback)
request - the request to set.callback - the callback to set.| Method Detail |
|---|
public void handleResult(List<ByteBuffer> responseBytes)
Callback
handleResult in interface Callback<List<ByteBuffer>>responseBytes - the result returned in the callback.public void handleError(Throwable error)
Callback
handleError in interface Callback<List<ByteBuffer>>error - the error returned in the callback.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||