ehcache

net.sf.ehcache.constructs.nonstop
Interface ClusterOperation<V>

Type Parameters:
V -

public interface ClusterOperation<V>

Interface for executing clustered operations (that can potentially get stuck)

Author:
Abhishek Sanoujam

Method Summary
 V performClusterOperation()
          Perform the actual operation.
 V performClusterOperationTimedOut(TimeoutBehaviorConfiguration.TimeoutBehaviorType configuredTimeoutBehavior)
          Perform action when the actual operation is not able to complete.
 

Method Detail

performClusterOperation

V performClusterOperation()
                          throws Exception
Perform the actual operation. This operation can potentially get stuck in the network. This method is called by an executor thread

Returns:
the return value depending on the implementation
Throws:
Exception

performClusterOperationTimedOut

V performClusterOperationTimedOut(TimeoutBehaviorConfiguration.TimeoutBehaviorType configuredTimeoutBehavior)
Perform action when the actual operation is not able to complete. Implementation should take care of what to do depending on the TimeoutBehaviorConfiguration.TimeoutBehaviorType

Parameters:
configuredTimeoutBehavior - The configured TimeoutBehaviorConfiguration.TimeoutBehaviorType
Returns:
value depending on the implementation

ehcache

true