public interface RequestCallback<T>
RequestCallback
need to make sure that any public methods
are threadsafe with respect to onResponse(org.apache.cassandra.net.Message<T>)
being called from the message
service. In particular, if any shared state is referenced, making
response alone synchronized will not suffice.Modifier and Type | Method and Description |
---|---|
default boolean |
invokeOnFailure() |
default void |
onFailure(InetAddressAndPort from,
RequestFailureReason failureReason)
Called when there is an exception on the remote node or timeout happens
|
void |
onResponse(Message<T> msg) |
default boolean |
trackLatencyForSnitch() |
default void onFailure(InetAddressAndPort from, RequestFailureReason failureReason)
default boolean invokeOnFailure()
default boolean trackLatencyForSnitch()
Copyright © 2009-2022 The Apache Software Foundation