|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.opensaml.util.storage.ExpiringObjectStorageServiceSweeper
public class ExpiringObjectStorageServiceSweeper
A simple task that periodically sweeps over a StorageService
and removes expired entries.
Field Summary | |
---|---|
private org.slf4j.Logger |
log
Class logger. |
private Set<String> |
partitions
Storage partitions to sweep. |
private StorageService |
store
Storage service whose entries will be periodically checked. |
private long |
sweepInterval
Interval between sweeps. |
Constructor Summary | |
---|---|
ExpiringObjectStorageServiceSweeper(Timer taskTimer,
long interval,
StorageService sweptStore)
Constructor. |
|
ExpiringObjectStorageServiceSweeper(Timer taskTimer,
long interval,
StorageService sweptStore,
Set<String> sweptPartitions)
Constructor. |
Method Summary | |
---|---|
void |
run()
|
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final org.slf4j.Logger log
private long sweepInterval
private StorageService store
private Set<String> partitions
Constructor Detail |
---|
public ExpiringObjectStorageServiceSweeper(Timer taskTimer, long interval, StorageService sweptStore)
taskTimer
- timer that will sweep the given storage serviceinterval
- interval, in milliseconds, that the storage service will be sweptsweptStore
- storage service that will be sweptpublic ExpiringObjectStorageServiceSweeper(Timer taskTimer, long interval, StorageService sweptStore, Set<String> sweptPartitions)
taskTimer
- timer that will sweep the given storage serviceinterval
- interval, in milliseconds, that the storage service will be sweptsweptStore
- storage service that will be sweptsweptPartitions
- the partitions to sweep, if null or empty all partitions are sweptMethod Detail |
---|
public void run()
run
in interface Runnable
run
in class TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |