public class HistoryLimit extends Object implements Serializable
| Constructor and Description |
|---|
HistoryLimit(int pMaxEntries,
long pMaxDuration)
Create a limit with either or both maxEntries and maxDuration set
|
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxDuration() |
int |
getMaxEntries() |
HistoryLimit |
respectGlobalMaxEntries(int pGlobalMaxEntries)
Return a limit whose max entries are smaller or equals the given upper limit.
|
String |
toString() |
public HistoryLimit(int pMaxEntries,
long pMaxDuration)
pMaxEntries - maximum number of entries to keeppMaxDuration - maximum duration for entries to keep (in seconds)public int getMaxEntries()
public long getMaxDuration()
public HistoryLimit respectGlobalMaxEntries(int pGlobalMaxEntries)
pGlobalMaxEntries - upper limitCopyright © 2019. All rights reserved.