com.netflix.astyanax
Interface Execution<R>

Type Parameters:
R -
All Known Subinterfaces:
AllRowsQuery<K,C>, ColumnCountQuery, ColumnQuery<C>, CqlQuery<K,C>, IndexQuery<K,C>, MutationBatch, RowCopier<K,C>, RowQuery<K,C>, RowSliceQuery<K,C>
All Known Implementing Classes:
AbstractExecutionImpl, AbstractIndexQueryImpl, AbstractRowQueryImpl, AbstractRowSliceQueryImpl, AbstractThriftAllRowsQueryImpl, AbstractThriftMutationBatchImpl

public interface Execution<R>

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

Author:
elandau

Method Summary
 OperationResult<R> execute()
          Block while executing the operations
 Future<OperationResult<R>> executeAsync()
          Return a future to the operation.
 

Method Detail

execute

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

Returns:
Throws:
ConnectionException

executeAsync

Future<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:
Throws:
ConnectionException


Copyright © 2012. All Rights Reserved.