public enum RollCycles extends Enum<RollCycles> implements RollCycle
Enum Constant and Description |
---|
DAILY |
HOURLY |
HUGE_DAILY |
HUGE_DAILY_XSPARSE |
LARGE_DAILY |
LARGE_HOURLY |
LARGE_HOURLY_SPARSE |
LARGE_HOURLY_XSPARSE |
MINUTELY |
SMALL_DAILY |
TEST_DAILY |
TEST_HOURLY |
TEST_SECONDLY |
TEST2_DAILY |
TEST4_DAILY |
XLARGE_DAILY |
Modifier and Type | Method and Description |
---|---|
int |
current(net.openhft.chronicle.core.time.TimeProvider time,
long epoch) |
int |
defaultIndexCount() |
int |
defaultIndexSpacing() |
String |
format() |
int |
length() |
static void |
main(String[] args) |
int |
toCycle(long index) |
long |
toIndex(int cycle,
long sequenceNumber) |
long |
toSequenceNumber(long index) |
static RollCycles |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RollCycles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RollCycles TEST_SECONDLY
public static final RollCycles MINUTELY
public static final RollCycles TEST_HOURLY
public static final RollCycles HOURLY
public static final RollCycles LARGE_HOURLY
public static final RollCycles LARGE_HOURLY_SPARSE
public static final RollCycles LARGE_HOURLY_XSPARSE
public static final RollCycles TEST_DAILY
public static final RollCycles TEST2_DAILY
public static final RollCycles TEST4_DAILY
public static final RollCycles SMALL_DAILY
public static final RollCycles DAILY
public static final RollCycles LARGE_DAILY
public static final RollCycles XLARGE_DAILY
public static final RollCycles HUGE_DAILY
public static final RollCycles HUGE_DAILY_XSPARSE
public static RollCycles[] values()
for (RollCycles c : RollCycles.values()) System.out.println(c);
public static RollCycles valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int defaultIndexCount()
defaultIndexCount
in interface RollCycle
public int defaultIndexSpacing()
defaultIndexSpacing
in interface RollCycle
public int current(@NotNull net.openhft.chronicle.core.time.TimeProvider time, long epoch)
public long toIndex(int cycle, long sequenceNumber)
public long toSequenceNumber(long index)
toSequenceNumber
in interface RollCycle
public static void main(String[] args)
Copyright © 2018. All rights reserved.