public class BasicAuctionClusteredService extends Object implements io.aeron.cluster.service.ClusteredService
Modifier and Type | Field and Description |
---|---|
static int |
BID_MESSAGE_LENGTH |
static int |
BID_SUCCEEDED_OFFSET |
static int |
CORRELATION_ID_OFFSET |
static int |
CUSTOMER_ID_OFFSET |
static int |
EGRESS_MESSAGE_LENGTH |
static int |
PRICE_OFFSET |
static int |
SNAPSHOT_CUSTOMER_ID_OFFSET |
static int |
SNAPSHOT_MESSAGE_LENGTH |
static int |
SNAPSHOT_PRICE_OFFSET |
Constructor and Description |
---|
BasicAuctionClusteredService() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
void |
onRoleChange(io.aeron.cluster.service.Cluster.Role newRole) |
void |
onSessionClose(io.aeron.cluster.service.ClientSession session,
long timestamp,
io.aeron.cluster.codecs.CloseReason closeReason) |
void |
onSessionMessage(io.aeron.cluster.service.ClientSession session,
long timestamp,
DirectBuffer buffer,
int offset,
int length,
Header header) |
void |
onSessionOpen(io.aeron.cluster.service.ClientSession session,
long timestamp) |
void |
onStart(io.aeron.cluster.service.Cluster cluster,
Image snapshotImage) |
void |
onTakeSnapshot(ExclusivePublication snapshotPublication) |
void |
onTerminate(io.aeron.cluster.service.Cluster cluster) |
void |
onTimerEvent(long correlationId,
long timestamp) |
String |
toString() |
public static final int CORRELATION_ID_OFFSET
public static final int CUSTOMER_ID_OFFSET
public static final int PRICE_OFFSET
public static final int BID_MESSAGE_LENGTH
public static final int BID_SUCCEEDED_OFFSET
public static final int EGRESS_MESSAGE_LENGTH
public static final int SNAPSHOT_CUSTOMER_ID_OFFSET
public static final int SNAPSHOT_PRICE_OFFSET
public static final int SNAPSHOT_MESSAGE_LENGTH
public void onStart(io.aeron.cluster.service.Cluster cluster, Image snapshotImage)
onStart
in interface io.aeron.cluster.service.ClusteredService
public void onSessionMessage(io.aeron.cluster.service.ClientSession session, long timestamp, DirectBuffer buffer, int offset, int length, Header header)
onSessionMessage
in interface io.aeron.cluster.service.ClusteredService
public void onTakeSnapshot(ExclusivePublication snapshotPublication)
onTakeSnapshot
in interface io.aeron.cluster.service.ClusteredService
public void onRoleChange(io.aeron.cluster.service.Cluster.Role newRole)
onRoleChange
in interface io.aeron.cluster.service.ClusteredService
public void onTerminate(io.aeron.cluster.service.Cluster cluster)
onTerminate
in interface io.aeron.cluster.service.ClusteredService
public void onSessionOpen(io.aeron.cluster.service.ClientSession session, long timestamp)
onSessionOpen
in interface io.aeron.cluster.service.ClusteredService
public void onSessionClose(io.aeron.cluster.service.ClientSession session, long timestamp, io.aeron.cluster.codecs.CloseReason closeReason)
onSessionClose
in interface io.aeron.cluster.service.ClusteredService
public void onTimerEvent(long correlationId, long timestamp)
onTimerEvent
in interface io.aeron.cluster.service.ClusteredService
Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.