public static class BallotGenerator.Default extends java.lang.Object implements BallotGenerator
BallotGenerator.Default, BallotGenerator.Global
Constructor and Description |
---|
Default() |
Modifier and Type | Method and 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) |
public Ballot atUnixMicros(long unixMicros, Ballot.Flag flag)
atUnixMicros
in interface BallotGenerator
public Ballot next(long minUnixMicros, Ballot.Flag flag)
next
in interface BallotGenerator
public Ballot stale(long fromInMicros, long toInMicros, Ballot.Flag flag)
stale
in interface BallotGenerator
public long next(long minTimestamp)
public long prevUnixMicros()
prevUnixMicros
in interface BallotGenerator
Copyright © 2009-2022 The Apache Software Foundation