me.prettyprint.hector.api
Interface ConsistencyLevelPolicy

All Known Implementing Classes:
AllOneConsistencyLevelPolicy, ConfigurableConsistencyLevel, QuorumAllConsistencyLevelPolicy

public interface ConsistencyLevelPolicy

Defines the interface for the consistency level policy. Implementations may create their own consistency level policies, such as AllOneConsistencyLevelPolicy or QuorumAllConsistencyLevelPolicy

Author:
Ran Tavory

Method Summary
 HConsistencyLevel get(OperationType op)
          Get the desired consistency level according to the operation type.
 HConsistencyLevel get(OperationType op, String cfName)
          Get desired consistency according to the operation type and column family name.
 

Method Detail

get

HConsistencyLevel get(OperationType op)
Get the desired consistency level according to the operation type.

Parameters:
op -
Returns:

get

HConsistencyLevel get(OperationType op,
                      String cfName)
Get desired consistency according to the operation type and column family name.

Parameters:
op -
cfName -
Returns:


Copyright © 2011. All Rights Reserved.