org.opensaml.util.storage
Class ExpiringObjectStorageServiceSweeper

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


Constructor Summary
ExpiringObjectStorageServiceSweeper(java.util.Timer taskTimer, long sweepInterval, StorageService sweptStore)
          Constructor.
ExpiringObjectStorageServiceSweeper(java.util.Timer taskTimer, long sweepInterval, StorageService sweptStore, java.util.Set<java.lang.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(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 service
sweepInterval - interval, in milliseconds, that the storage service will be swept
sweptStore - 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 service
sweepInterval - 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 java.lang.Runnable
Specified by:
run in class java.util.TimerTask


Copyright © 2006-2009 Internet2. All Rights Reserved.