org.opensaml.util.storage
Class ExpiringObjectStorageServiceSweeper
java.lang.Object
java.util.TimerTask
org.opensaml.util.storage.ExpiringObjectStorageServiceSweeper
- All Implemented Interfaces:
- java.lang.Runnable
public class ExpiringObjectStorageServiceSweeper
- extends java.util.TimerTask
A simple task that periodically sweeps over a StorageService
and removes expired entries.
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 |
ExpiringObjectStorageServiceSweeper
public ExpiringObjectStorageServiceSweeper(java.util.Timer taskTimer,
long sweepInterval,
StorageService sweptStore)
- Constructor. Registers this task with the given timer.
- Parameters:
taskTimer
- timer that will sweep the given storage servicesweepInterval
- interval, in milliseconds, that the storage service will be sweptsweptStore
- storage service that will be swept
ExpiringObjectStorageServiceSweeper
public ExpiringObjectStorageServiceSweeper(java.util.Timer taskTimer,
long sweepInterval,
StorageService sweptStore,
java.util.Set<java.lang.String> sweptPartitions)
- Constructor. Registers this task with the given timer.
- Parameters:
taskTimer
- timer that will sweep the given storage servicesweepInterval
- 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 swept
run
public void run()
-
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class java.util.TimerTask
Copyright © 2006-2011 Internet2. All Rights Reserved.