public abstract class ExpirationManager<T extends Expirable> extends Object implements Index<T>
| Constructor and Description |
|---|
ExpirationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T toAdd)
Adds an item.
|
void |
clear()
Removes all data at once.
|
int |
evictExpired() |
int |
getHeapSize() |
protected abstract long |
getNow() |
boolean |
isEmpty() |
void |
notifyFinishedAdding() |
boolean |
remove(T toRemove)
Removes the given item from this index
|
void |
setVerbose(boolean verbose) |
void |
start() |
void |
stop() |
protected abstract long getNow()
public void clear()
Indexpublic void add(T toAdd)
public boolean remove(T toRemove)
Indexpublic void notifyFinishedAdding()
public int evictExpired()
public void start()
public void stop()
public int getHeapSize()
public void setVerbose(boolean verbose)
Copyright © 2016. All Rights Reserved.