public interface OperationResponseHandler<O extends Operation>
OperationService
when it has calculated a response. This way you can hook
into the Operation execution and decide what to do with it: for example, send it to the right machine.
The difference between the ResponseHandler
and the OperationResponseHandler is that the OperationResponseHandler
can be re-used since it isn't tied to a particular execution.
Also during the development of Hazelcast 3.6 additional methods will be added to the OperationResponseHandler for certain
types of responses like exceptions, backup complete etc.Modifier and Type | Method and Description |
---|---|
boolean |
isLocal()
Checks if this OperationResponseHandler is for a local invocation.
|
void |
sendResponse(O op,
Object response)
Sends a response.
|
void sendResponse(O op, Object response)
op
- the operation that got executed.response
- the response of the operation that got executed.boolean isLocal()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.