com.hazelcast.core

## Interface ExecutionCallback<V>

- Type Parameters:
    `V` - value
  All Known Implementing Classes:
    ClientReliableMessageRunner, com.hazelcast.topic.impl.reliable.MessageRunner

      public interface ExecutionCallback<V>

  ExecutionCallback allows to asynchronously get notified when the execution is completed, either successfully or with error.
  See Also:
    `IExecutorService.submit(java.util.concurrent.Callable, ExecutionCallback)`, `IExecutorService.submitToMember(java.util.concurrent.Callable, Member, ExecutionCallback)`, `IExecutorService.submitToKeyOwner(java.util.concurrent.Callable, Object, ExecutionCallback)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onFailure(Throwable t)` Called when an execution is completed with an error.
    `void` | `onResponse(V response)` Called when an execution is completed successfully.

- - ### Method Detail

    - #### onResponse

          void onResponse(V response)

      Called when an execution is completed successfully.
      Parameters:
        `response` - the result of the successful execution

    - #### onFailure

          void onFailure(Throwable t)

      Called when an execution is completed with an error.
      Parameters:
        `t` - the exception that is thrown

Copyright © 2019. All rights reserved.