com.basho.riak.client.cap
Interface Retrier

All Known Implementing Classes:
DefaultRetrier

public interface Retrier

Fault tolerant systems need fault tolerant clients, implement to retry failed operations.

Author:
russell

Method Summary
<T> T
attempt(Callable<T> command)
          Called by RiakOperation execute methods to give some measure of fault tolerance.
 

Method Detail

attempt

<T> T attempt(Callable<T> command)
          throws RiakRetryFailedException
Called by RiakOperation execute methods to give some measure of fault tolerance.

Type Parameters:
T - the Type the Callable.call() returns
Parameters:
command - the Callable
Returns:
the value of Callable.call()
Throws:
RiakRetryFailedException - if the retrier exceeds its bounds.


Copyright © 2012. All Rights Reserved.