public abstract class BetEventState<E extends IBetEvent> extends java.lang.Object implements IBetEventState
| Constructor and Description |
|---|
BetEventState(java.lang.String matchId,
java.lang.String eventId,
PartitionKey key,
int duration,
int bookPriority) |
BetEventState(java.lang.String matchId,
java.lang.String eventId,
PartitionKey key,
int duration,
int bookPriority,
long time) |
| Modifier and Type | Method and Description |
|---|---|
int |
bookPriority() |
int |
duration()
Get the duration of the event
|
java.lang.String |
eventId()
Retrieve event id
|
long |
getCreatedTime() |
java.lang.String |
matchId()
Retrieve the match id of the match object
|
PartitionKey |
partitionKey()
Data come from multiple sources, for the same event
there might be multiple event states.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsegment, stats, statsOfpublic BetEventState(java.lang.String matchId,
java.lang.String eventId,
PartitionKey key,
int duration,
int bookPriority,
long time)
public BetEventState(java.lang.String matchId,
java.lang.String eventId,
PartitionKey key,
int duration,
int bookPriority)
public PartitionKey partitionKey()
partitionKey in interface IBetEventStatepublic java.lang.String eventId()
eventId in interface IBetEventStatepublic java.lang.String matchId()
IBetEventStatematchId in interface IBetEventStatepublic int duration()
duration in interface IBetEventStatepublic long getCreatedTime()
getCreatedTime in interface IBetEventStatepublic int bookPriority()
bookPriority in interface IBetEventState