Platform SDK Java 8.5 API Reference

com.genesyslab.platform.clusterprotocol
Class ClusterProtocolImpl.CompletionHelper<V,A>

java.lang.Object
  extended by com.genesyslab.platform.clusterprotocol.ClusterProtocolImpl.CompletionHelper<V,A>
All Implemented Interfaces:
CompletionHandler<V,A>
Enclosing class:
ClusterProtocolImpl<P extends ClientChannel,B extends ProtocolBuilder<P,B>>

protected class ClusterProtocolImpl.CompletionHelper<V,A>
extends java.lang.Object
implements CompletionHandler<V,A>


Constructor Summary
ClusterProtocolImpl.CompletionHelper(CompletionHandler<V,? super A> handler)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterProtocolImpl.CompletionHelper

public ClusterProtocolImpl.CompletionHelper(CompletionHandler<V,? super A> handler)
Method Detail

completed

public void completed(V result,
                      A attachment)
Description copied from interface: CompletionHandler
Invoked when an operation has completed.

Specified by:
completed in interface CompletionHandler<V,A>
Parameters:
result - the result of the operation
attachment - the object attached to the operation when it was initiated

failed

public void failed(java.lang.Throwable exc,
                   A attachment)
Description copied from interface: CompletionHandler
Invoked when an operation fails.

Specified by:
failed in interface CompletionHandler<V,A>
Parameters:
exc - the exception to indicate why the operation failed
attachment - the object attached to the operation when it was initiated

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.