org.apache.cassandra.service
Class QuorumResponseHandler<T>
java.lang.Object
org.apache.cassandra.service.QuorumResponseHandler<T>
- All Implemented Interfaces:
- IAsyncCallback
public class QuorumResponseHandler<T>
- extends java.lang.Object
- implements IAsyncCallback
Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuorumResponseHandler
public QuorumResponseHandler(int responseCount,
IResponseResolver<T> responseResolver)
setResponseCount
public void setResponseCount(int responseCount)
get
public T get()
throws java.util.concurrent.TimeoutException,
DigestMismatchException
- Throws:
java.util.concurrent.TimeoutException
DigestMismatchException
response
public void response(Message message)
- Specified by:
response
in interface IAsyncCallback
- Parameters:
message
- responses to be returned
attachContext
public void attachContext(java.lang.Object o)
- Description copied from interface:
IAsyncCallback
- Attach some application specific context to the
callback.
- Specified by:
attachContext
in interface IAsyncCallback
- Parameters:
o
- application specific context
Copyright © 2009 The Apache Software Foundation