public class PaxosPrepareRefresh extends java.lang.Object implements RequestCallbackWithFailure<org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Response>
Modifier and Type | Class and Description |
---|---|
static class |
PaxosPrepareRefresh.RequestHandler |
static class |
PaxosPrepareRefresh.RequestSerializer |
static class |
PaxosPrepareRefresh.ResponseSerializer |
Modifier and Type | Field and Description |
---|---|
static PaxosPrepareRefresh.RequestHandler |
requestHandler |
static PaxosPrepareRefresh.RequestSerializer |
requestSerializer |
static PaxosPrepareRefresh.ResponseSerializer |
responseSerializer |
Constructor and Description |
---|
PaxosPrepareRefresh(Ballot prepared,
org.apache.cassandra.service.paxos.Paxos.Participants participants,
Commit.Committed latestCommitted,
org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Callbacks callbacks) |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(InetAddressAndPort from,
RequestFailureReason reason)
Called when there is an exception on the remote node or timeout happens
|
void |
onResponse(Message<org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Response> message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokeOnFailure
trackLatencyForSnitch
public static final PaxosPrepareRefresh.RequestHandler requestHandler
public static final PaxosPrepareRefresh.RequestSerializer requestSerializer
public static final PaxosPrepareRefresh.ResponseSerializer responseSerializer
public PaxosPrepareRefresh(Ballot prepared, org.apache.cassandra.service.paxos.Paxos.Participants participants, Commit.Committed latestCommitted, org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Callbacks callbacks)
public void onFailure(InetAddressAndPort from, RequestFailureReason reason)
RequestCallbackWithFailure
onFailure
in interface RequestCallback<org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Response>
onFailure
in interface RequestCallbackWithFailure<org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Response>
public void onResponse(Message<org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Response> message)
onResponse
in interface RequestCallback<org.apache.cassandra.service.paxos.PaxosPrepareRefresh.Response>
message
- response received.Copyright © 2009-2022 The Apache Software Foundation