V
- the result type of the operationA
- the type of the object attached to the operationClusterProtocolImpl.CompletionHelper
public interface CompletionHandler<V,A>
completed()
method is invoked when the operation completes successfully.
The failed()
method is invoked if the operation fails.
Note: The implementations of these methods should complete in a timely manner
so as to avoid keeping the invoking thread from dispatching to other completion handlers
and event handlers.Modifier and Type | Method | Description |
---|---|---|
void |
completed(V result,
A attachment) |
Invoked when an operation has completed.
|
void |
failed(java.lang.Throwable exc,
A attachment) |
Invoked when an operation fails.
|
void completed(V result, A attachment)
result
- the result of the operationattachment
- the object attached to the operation when it was initiatedvoid failed(java.lang.Throwable exc, A attachment)
exc
- the exception to indicate why the operation failedattachment
- the object attached to the operation when it was initiatedSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.