org.apache.cassandra.service
Interface IResponseResolver<T>
- All Known Implementing Classes:
- AbstractRowResolver, RangeSliceResponseResolver, RowDigestResolver, RowRepairResolver
public interface IResponseResolver<T>
resolve
T resolve()
throws DigestMismatchException,
java.io.IOException
- This Method resolves the responses that are passed in . for example : if
its write response then all we get is true or false return values which
implies if the writes were successful but for reads its more complicated
you need to look at the responses and then based on differences schedule
repairs . Hence you need to derive a response resolver based on your
needs from this interface.
- Throws:
DigestMismatchException
java.io.IOException
isDataPresent
boolean isDataPresent()
getData
T getData()
throws java.io.IOException
- returns the data response without comparing with any digests
- Throws:
java.io.IOException
preprocess
void preprocess(Message message)
getMessages
java.lang.Iterable<Message> getMessages()
getMaxLiveColumns
int getMaxLiveColumns()
Copyright © 2012 The Apache Software Foundation