public class ExpiringObjectStorageServiceSweeper extends TimerTask
StorageService and removes expired entries.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ExpiringObjectStorageServiceSweeper(Timer taskTimer,
long interval,
StorageService sweptStore)
Constructor.
|
ExpiringObjectStorageServiceSweeper(Timer taskTimer,
long interval,
StorageService sweptStore,
Set<String> sweptPartitions)
Constructor.
|
private final org.slf4j.Logger log
private long sweepInterval
private StorageService store
public ExpiringObjectStorageServiceSweeper(Timer taskTimer, long interval, StorageService sweptStore)
taskTimer - timer that will sweep the given storage serviceinterval - interval, in milliseconds, that the storage service will be sweptsweptStore - storage service that will be sweptpublic ExpiringObjectStorageServiceSweeper(Timer taskTimer, long interval, StorageService sweptStore, Set<String> sweptPartitions)
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 sweptCopyright © 1999-2015. All Rights Reserved.