Package org.apache.avro.ipc
Interface Callback<T>
- All Known Implementing Classes:
CallFuture,Requestor.TransceiverCallback
public interface Callback<T>
Interface for receiving asynchronous callbacks. For each request with an
asynchronous callback, either
handleResult(Object) or
handleError(Throwable) will be invoked.-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(Throwable error) Receives an error.voidhandleResult(T result) Receives a callback result.
-
Method Details
-
handleResult
Receives a callback result.- Parameters:
result- the result returned in the callback.
-
handleError
Receives an error.- Parameters:
error- the error returned in the callback.
-