public interface

Operation

com.netflix.astyanax.connectionpool.Operation<CL, R>
Known Indirect Subclasses

Class Overview

Callback interface to perform an operation on a client associated with a connection pool's connection resource

Summary

Public Methods
abstract R execute(CL client)
Execute the operation on the client object and return the results@return
abstract String getKeyspace()
Return keyspace for this operation.
abstract Host getPinnedHost()
Return the host to run on or null to select a host using the load blancer.
abstract BigInteger getToken()
Return the unique key on which the operation is performed or null if the operation is performed on multiple keys.

Public Methods

public abstract R execute (CL client)

Execute the operation on the client object and return the results@return

Throws
OperationException
ConnectionException

public abstract String getKeyspace ()

Return keyspace for this operation. Return null if using the current keyspace, or a keyspace is not needed for the operation.

public abstract Host getPinnedHost ()

Return the host to run on or null to select a host using the load blancer. Failover is disabled for this scenario.

public abstract BigInteger getToken ()

Return the unique key on which the operation is performed or null if the operation is performed on multiple keys.