org.eclipse.dstore.core.util
Class DataElementRemover
java.lang.Object
java.lang.Thread
org.eclipse.dstore.core.model.Handler
org.eclipse.dstore.core.util.DataElementRemover
- All Implemented Interfaces:
- Runnable
- public class DataElementRemover
- extends Handler
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
DEFAULT_EXPIRY_TIME
public static final int DEFAULT_EXPIRY_TIME
- See Also:
- Constant Field Values
DEFAULT_INTERVAL_TIME
public static final int DEFAULT_INTERVAL_TIME
- See Also:
- Constant Field Values
EXPIRY_TIME_PROPERTY_NAME
public static final String EXPIRY_TIME_PROPERTY_NAME
- See Also:
- Constant Field Values
INTERVAL_TIME_PROPERTY_NAME
public static final String INTERVAL_TIME_PROPERTY_NAME
- See Also:
- Constant Field Values
DataElementRemover
public DataElementRemover(DataStore dataStore)
getTimes
protected void getTimes()
addToRemovedCount
public static void addToRemovedCount()
addToCreatedCount
public static void addToCreatedCount()
addToGCedCount
public static void addToGCedCount()
addToQueueForRemoval
public void addToQueueForRemoval(DataElement element)
handle
public void handle()
- Description copied from class:
Handler
- Implemented to provide the periodic activity to be done in a handler.
This method is called between wait intervals by the handler thread.
- Specified by:
handle in class Handler
clearQueue
public void clearQueue()
run
public void run()
- Runs the handler loop in a thread.
- Specified by:
run in interface Runnable- Overrides:
run in class Handler
Guidelines for using DataStore APIs.