Top Description Methods
javax.cache.integration

public Interface CompletionListener

Known Direct Implementers
javax.cache.integration.CompletionListenerFuture

A CompletionListener is implemented by an application when it needs to be notified of the completion of some Cache operation.

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.

Author
Brian Oliver
Since
1.0
See Also
CompletionListenerFuture

Method Summary

Modifier and TypeMethod and Description
public void
onCompletion()

Notifies the application that the operation completed successfully.

public void
onException(Exception
the Exception that occurred
e
)

Notifies the application that the operation failed.

Method Detail

onCompletionback to summary
public void onCompletion()

Notifies the application that the operation completed successfully.

onExceptionback to summary
public void onException(Exception e)

Notifies the application that the operation failed.

Parameters
e:Exception

the Exception that occurred