Package com.hazelcast.core
Interface ExecutionCallback<V>
- Type Parameters:
V
- value
public interface ExecutionCallback<V>
ExecutionCallback allows to asynchronously get notified when the execution is completed,
either successfully or with error.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when an execution is completed with an error.void
onResponse
(V response) Called when an execution is completed successfully.
-
Method Details
-
onResponse
Called when an execution is completed successfully.- Parameters:
response
- the result of the successful execution
-
onFailure
Called when an execution is completed with an error.- Parameters:
t
- the exception that is thrown
-