public class ChronicleRetentionDuration extends Object
Modifier and Type | Field and 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 and Description |
---|
ChronicleRetentionDuration(String retention) |
Modifier and Type | Method and 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() |
protected static final String SECOND_ROLLING_PERIOD
protected static final String MINUTE_ROLLING_PERIOD
protected static final String HOUR_ROLLING_PERIOD
protected static final String DAY_ROLLING_PERIOD
protected final net.openhft.chronicle.queue.RollCycle rollCycle
protected final int retentionCycles
public static final ChronicleRetentionDuration NONE
public ChronicleRetentionDuration(String retention)
protected String decodeRetention(String retention)
public boolean disable()
public net.openhft.chronicle.queue.RollCycle getRollCycle()
public String getRetention()
public int getRetentionCycles()
protected net.openhft.chronicle.queue.RollCycle decodeRollCycle(String retentionDuration)
protected int decodeRetentionCycles(String retentionDuration)
protected static String encodeRollCycle(net.openhft.chronicle.queue.RollCycle rollCycle)
public static ChronicleRetentionDuration disableOf(ChronicleRetentionDuration retention)
Copyright © 2019 Nuxeo. All rights reserved.