com.netflix.astyanax
Interface Execution<R>

Type Parameters:
R - - The return type for the concrete operation
All Known Implementing Classes:
AbstractExecutionImpl

public interface Execution<R>

Interface for an operation that can be executed on the cluster.


Method Summary
 OperationResult<R> execute()
          Block while executing the operations
 com.google.common.util.concurrent.ListenableFuture<OperationResult<R>> executeAsync()
          Return a future to the operation.
 

Method Detail

execute

OperationResult<R> execute()
                           throws ConnectionException
Block while executing the operations

Returns:
Result object that wraps the actual result and provides information about how the operation was executed.
Throws:
ConnectionException

executeAsync

com.google.common.util.concurrent.ListenableFuture<OperationResult<R>> executeAsync()
                                                                                    throws ConnectionException
Return a future to the operation. The operation will most likely be executed in a separate thread where both the connection pool logic as well as the actual operation will be executed.

Returns:
A listenable future
Throws:
ConnectionException