public class KeepAliveRequest extends AbstractRaftRequest
Keep alive requests are sent by clients to servers to maintain a session registered via
a OpenSessionRequest. Once a session has been registered, clients are responsible for sending
keep alive requests to the cluster at a rate less than the provided OpenSessionResponse.timeout().
Keep alive requests also server to acknowledge the receipt of responses and events by the client.
The commandSequenceNumbers() number indicates the highest command sequence number for which the client
has received a response, and the eventIndexes() numbers indicate the highest index for which the
client has received an event in proper sequence.
| Modifier and Type | Class and Description |
|---|---|
static class |
KeepAliveRequest.Builder
Keep alive request builder.
|
| Constructor and Description |
|---|
KeepAliveRequest(long[] sessionIds,
long[] commandSequences,
long[] eventIndexes) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
commandSequenceNumbers()
Returns the command sequence numbers.
|
boolean |
equals(Object object) |
long[] |
eventIndexes()
Returns the event indexes.
|
int |
hashCode() |
static KeepAliveRequest.Builder |
newBuilder()
Returns a new keep alive request builder.
|
long[] |
sessionIds()
Returns the session identifiers.
|
String |
toString() |
public KeepAliveRequest(long[] sessionIds,
long[] commandSequences,
long[] eventIndexes)
public static KeepAliveRequest.Builder newBuilder()
public long[] sessionIds()
public long[] commandSequenceNumbers()
public long[] eventIndexes()
Copyright © 2013–2017. All rights reserved.