Class BallotGenerator.Default
- java.lang.Object
-
- org.apache.cassandra.service.paxos.BallotGenerator.Default
-
- All Implemented Interfaces:
BallotGenerator
- Enclosing interface:
- BallotGenerator
public static class BallotGenerator.Default extends java.lang.Object implements BallotGenerator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.service.paxos.BallotGenerator
BallotGenerator.Default, BallotGenerator.Global
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ballot
atUnixMicros(long unixMicros, Ballot.Flag flag)
long
next(long minTimestamp)
Ballot
next(long minUnixMicros, Ballot.Flag flag)
long
prevUnixMicros()
Ballot
stale(long fromInMicros, long toInMicros, Ballot.Flag flag)
-
-
-
Method Detail
-
atUnixMicros
public Ballot atUnixMicros(long unixMicros, Ballot.Flag flag)
- Specified by:
atUnixMicros
in interfaceBallotGenerator
-
next
public Ballot next(long minUnixMicros, Ballot.Flag flag)
- Specified by:
next
in interfaceBallotGenerator
-
stale
public Ballot stale(long fromInMicros, long toInMicros, Ballot.Flag flag)
- Specified by:
stale
in interfaceBallotGenerator
-
next
public long next(long minTimestamp)
-
prevUnixMicros
public long prevUnixMicros()
- Specified by:
prevUnixMicros
in interfaceBallotGenerator
-
-