org.opensaml.util.storage
Class ExpiringObjectStorageServiceSweeper

java.lang.Object
  extended by java.util.TimerTask
      extended by 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.


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

log

private final org.slf4j.Logger log
Class logger.


sweepInterval

private long sweepInterval
Interval between sweeps.


store

private StorageService store
Storage service whose entries will be periodically checked.


partitions

private Set<String> partitions
Storage partitions to sweep.

Constructor Detail

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 service
interval - interval, in milliseconds, that the storage service will be swept
sweptStore - 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 service
interval - interval, in milliseconds, that the storage service will be swept
sweptStore - storage service that will be swept
sweptPartitions - the partitions to sweep, if null or empty all partitions are swept
Method Detail

run

public void run()

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask


Copyright © 1999-2013. All Rights Reserved.