com.hazelcast.spi

## Interface OperationResponseHandler<O extends Operation>

- Type Parameters:
    `O` - type of the `Operation`

      public interface OperationResponseHandler<O extends Operation>

  A handler for the `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.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `sendResponse(O op, Object response)` Sends a response.

- - ### Method Detail

    - #### sendResponse

          void sendResponse(O op,
                            Object response)

      Sends a response.
      Parameters:
        `op` - the operation that got executed.
        `response` - the response of the operation that got executed.
      Throws:
        `HazelcastSerializationException` - if response is not serializable or contains non serializable object inside NormalResponse

Copyright © 2018. All rights reserved.