org.apache.cassandra.service
Class RepairCallback<T>

java.lang.Object
  extended by org.apache.cassandra.service.RepairCallback<T>
All Implemented Interfaces:
IAsyncCallback, IMessageCallback

public class RepairCallback<T>
extends java.lang.Object
implements IAsyncCallback


Constructor Summary
RepairCallback(IResponseResolver<T> resolver, java.util.List<java.net.InetAddress> endpoints)
          The main difference between this and ReadCallback is, ReadCallback has a ConsistencyLevel it needs to achieve.
 
Method Summary
 T get()
           
 boolean isLatencyForSnitch()
           
 void response(Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepairCallback

public RepairCallback(IResponseResolver<T> resolver,
                      java.util.List<java.net.InetAddress> endpoints)
The main difference between this and ReadCallback is, ReadCallback has a ConsistencyLevel it needs to achieve. Repair on the other hand is happy to repair whoever replies within the timeout. (The other main difference of course is, this is only created once we know we have a digest mismatch, and we're going to do full-data reads from everyone -- that is, this is the final stage in the read process.)

Method Detail

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.

isLatencyForSnitch

public boolean isLatencyForSnitch()
Specified by:
isLatencyForSnitch in interface IMessageCallback
Returns:
true if this callback is on the read path and its latency should be given as input to the dynamic snitch.


Copyright © 2011 The Apache Software Foundation