com.netflix.astyanax.connectionpool
Interface ExecuteWithFailover<CL,R>
- Type Parameters:
CL - R -
- All Known Implementing Classes:
- AbstractExecuteWithFailoverImpl, LeastOutstandingExecuteWithFailover, RoundRobinExecuteWithFailover
public interface ExecuteWithFailover<CL,R>
Interface that encapsulates functionality to execute an Operation with a failover strategy as well.
This class is used when attempting to find a healthy Connection from a set of HostConnectionPool(s) for a set of Host(s)
This can be used by an extending class of the AbstractHostPartitionConnectionPool which reliably tries to execute an Operation
within the AbstractHostPartitionConnectionPool.executeWithFailover(Operation, com.netflix.astyanax.retry.RetryPolicy) method for the
given host partitions.
- See Also:
AbstractHostPartitionConnectionPool} for references to this class.
tryOperation
OperationResult<R> tryOperation(Operation<CL,R> operation)
throws ConnectionException
- Throws:
ConnectionException