public class PruningStrategyEntryAge extends Object implements PruningStrategy
Entries in a model are removed according to how old they are.
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULTPRUNEAGE |
Constructor and Description |
---|
PruningStrategyEntryAge() |
Modifier and Type | Method and Description |
---|---|
void |
pruneState(AuthStateModel s)
Prune model
|
void |
setEntryAgePruningSeconds(long entryAgePruningSeconds)
Set age after which entries will be pruned from the model
|
public static final long DEFAULTPRUNEAGE
public void setEntryAgePruningSeconds(long entryAgePruningSeconds)
entryAgePruningSeconds
- Age in seconds after which entry will be prunedpublic void pruneState(AuthStateModel s)
Implementation of method of PruningStrategyEntryAge
pruneState
in interface PruningStrategy
s
- AuthStateModel
Copyright © 2022. All rights reserved.