Class ChronicleRetentionDuration
- java.lang.Object
-
- org.nuxeo.lib.stream.log.chronicle.ChronicleRetentionDuration
-
public class ChronicleRetentionDuration extends Object
- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DAY_ROLLING_PERIOD
protected static String
HOUR_ROLLING_PERIOD
protected static String
MINUTE_ROLLING_PERIOD
static ChronicleRetentionDuration
NONE
protected String
retention
protected int
retentionCycles
protected net.openhft.chronicle.queue.RollCycle
rollCycle
protected static String
SECOND_ROLLING_PERIOD
-
Constructor Summary
Constructors Constructor Description ChronicleRetentionDuration(String retention)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
decodeRetention(String retention)
protected int
decodeRetentionCycles(String retentionDuration)
protected net.openhft.chronicle.queue.RollCycle
decodeRollCycle(String retentionDuration)
boolean
disable()
static ChronicleRetentionDuration
disableOf(ChronicleRetentionDuration retention)
protected static String
encodeRollCycle(net.openhft.chronicle.queue.RollCycle rollCycle)
String
getRetention()
int
getRetentionCycles()
net.openhft.chronicle.queue.RollCycle
getRollCycle()
String
toString()
-
-
-
Field Detail
-
SECOND_ROLLING_PERIOD
protected static final String SECOND_ROLLING_PERIOD
- See Also:
- Constant Field Values
-
MINUTE_ROLLING_PERIOD
protected static final String MINUTE_ROLLING_PERIOD
- See Also:
- Constant Field Values
-
HOUR_ROLLING_PERIOD
protected static final String HOUR_ROLLING_PERIOD
- See Also:
- Constant Field Values
-
DAY_ROLLING_PERIOD
protected static final String DAY_ROLLING_PERIOD
- See Also:
- Constant Field Values
-
rollCycle
protected final net.openhft.chronicle.queue.RollCycle rollCycle
-
retentionCycles
protected final int retentionCycles
-
retention
protected final String retention
-
NONE
public static final ChronicleRetentionDuration NONE
-
-
Constructor Detail
-
ChronicleRetentionDuration
public ChronicleRetentionDuration(String retention)
-
-
Method Detail
-
disable
public boolean disable()
-
getRollCycle
public net.openhft.chronicle.queue.RollCycle getRollCycle()
-
getRetention
public String getRetention()
-
getRetentionCycles
public int getRetentionCycles()
-
decodeRollCycle
protected net.openhft.chronicle.queue.RollCycle decodeRollCycle(String retentionDuration)
-
decodeRetentionCycles
protected int decodeRetentionCycles(String retentionDuration)
-
encodeRollCycle
protected static String encodeRollCycle(net.openhft.chronicle.queue.RollCycle rollCycle)
-
disableOf
public static ChronicleRetentionDuration disableOf(ChronicleRetentionDuration retention)
-
-