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, wait
segment, stats, statsOf
public 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 IBetEventState
public java.lang.String eventId()
eventId
in interface IBetEventState
public java.lang.String matchId()
IBetEventState
matchId
in interface IBetEventState
public int duration()
duration
in interface IBetEventState
public long getCreatedTime()
getCreatedTime
in interface IBetEventState
public int bookPriority()
bookPriority
in interface IBetEventState