CompletionListenerFuture
public interface CompletionListener
When the operation is complete, the Cache provider notifies the application
by calling the onCompletion()
method of the CompletionListener
.
If the operation fails for any reason, the Cache provider calls the
onException(Exception)
method of the CompletionListener
.
To support a Java Future-based approach to synchronously wait for a Cache
operation to complete, use a CompletionListenerFuture
.
A Cache provider will use an implementation specific thread to call methods on this interface.
CompletionListenerFuture
Modifier and Type | Method | Description |
---|---|---|
void |
onCompletion() |
Notifies the application that the operation completed successfully.
|
void |
onException(Exception e) |
Notifies the application that the operation failed.
|
void onCompletion()
void onException(Exception e)
e
- the Exception that occurredCopyright © 2017. All rights reserved.