org.apache.cassandra.service
Class QuorumResponseHandler<T>
java.lang.Object
org.apache.cassandra.service.QuorumResponseHandler<T>
- All Implemented Interfaces:
- IAsyncCallback, IMessageCallback
- Direct Known Subclasses:
- DatacenterQuorumResponseHandler
public class QuorumResponseHandler<T>
- extends java.lang.Object
- implements IAsyncCallback
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
condition
protected final SimpleCondition condition
resolver
protected final IResponseResolver<T> resolver
blockfor
protected final int blockfor
QuorumResponseHandler
public QuorumResponseHandler(IResponseResolver<T> resolver,
ConsistencyLevel consistencyLevel,
java.lang.String table)
- Constructor when response count has to be calculated and blocked for.
get
public T get()
throws java.util.concurrent.TimeoutException,
DigestMismatchException,
java.io.IOException
- Throws:
java.util.concurrent.TimeoutException
DigestMismatchException
java.io.IOException
response
public void response(Message message)
- Specified by:
response
in interface IAsyncCallback
- Parameters:
message
- response received.
determineBlockFor
public int determineBlockFor(ConsistencyLevel consistencyLevel,
java.lang.String table)
assureSufficientLiveNodes
public void assureSufficientLiveNodes(java.util.Collection<java.net.InetAddress> endpoints)
throws UnavailableException
- Throws:
UnavailableException
Copyright © 2011 The Apache Software Foundation