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.


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
 

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 © 2006-2013 Internet2. All Rights Reserved.