public class PrimaryElectionEvent extends AbstractEvent<PrimaryElectionEvent.Type,PrimaryTerm>
| Modifier and Type | Class and Description |
|---|---|
static class |
PrimaryElectionEvent.Type
Returns the election event type.
|
| Constructor and Description |
|---|
PrimaryElectionEvent(PrimaryElectionEvent.Type type,
PartitionId partitionId,
PrimaryTerm subject) |
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
partitionId()
Returns the partition ID.
|
PrimaryTerm |
term()
Returns the election term.
|
String |
toString() |
subject, time, typepublic PrimaryElectionEvent(PrimaryElectionEvent.Type type, PartitionId partitionId, PrimaryTerm subject)
public PartitionId partitionId()
public PrimaryTerm term()
public String toString()
toString in class AbstractEvent<PrimaryElectionEvent.Type,PrimaryTerm>Copyright © 2013–2018. All rights reserved.