Package net.jextra.fauxjo
Class StatementCache.Config
- java.lang.Object
-
- net.jextra.fauxjo.StatementCache.Config
-
- Enclosing class:
- StatementCache
public class StatementCache.Config extends Object
-
-
Constructor Summary
Constructors Constructor Description Config()Config(StatementCache.Config o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementCache.Configcopy()longgetMaxEntries()Return the max number of Statements before evicting the LRU when a new one is added.longgetStmtAgeMaxMs()Return the max age of an LRU Statement to be evicted when a new one is added.voidsetMaxEntries(long maxEntries)voidsetStmtAgeMaxMs(long stmtAgeMaxMs)StringtoString()
-
-
-
Constructor Detail
-
Config
public Config()
-
Config
public Config(StatementCache.Config o)
-
-
Method Detail
-
getMaxEntries
public long getMaxEntries()
Return the max number of Statements before evicting the LRU when a new one is added.
-
setMaxEntries
public void setMaxEntries(long maxEntries)
-
getStmtAgeMaxMs
public long getStmtAgeMaxMs()
Return the max age of an LRU Statement to be evicted when a new one is added.
-
setStmtAgeMaxMs
public void setStmtAgeMaxMs(long stmtAgeMaxMs)
-
copy
public StatementCache.Config copy()
-
-