org.apache.cassandra.net
Class CallbackInfo
java.lang.Object
org.apache.cassandra.net.CallbackInfo
public class CallbackInfo
- extends java.lang.Object
Encapsulates the callback information.
The ability to set the message is useful in cases for when a hint needs
to be written due to a timeout in the response from a replica.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
protected final java.net.InetAddress target
callback
protected final IMessageCallback callback
sentMessage
protected final MessageOut<?> sentMessage
serializer
protected final IVersionedSerializer<?> serializer
CallbackInfo
public CallbackInfo(java.net.InetAddress target,
IMessageCallback callback,
IVersionedSerializer<?> serializer)
- Create CallbackInfo without sent message
- Parameters:
target
- target to send messagecallback
- serializer
- serializer to deserialize response message
CallbackInfo
public CallbackInfo(java.net.InetAddress target,
IMessageCallback callback,
MessageOut<?> sentMessage,
IVersionedSerializer<?> serializer)
shouldHint
public boolean shouldHint()
- Returns:
- TRUE if a hint should be written for this target and if the CL was achieved. FALSE otherwise.
NOTE:
Assumes it is only called after the write of "message" to "target" has timed out.
Copyright © 2013 The Apache Software Foundation