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