java.lang.Object
java.lang.Thread
net.i2p.util.I2PThread
net.i2p.router.peermanager.PeerManager.ReorgThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
PeerManager
Reorganize the profiles. Also periodically store them, and delete very old ones.
This takes too long to run on the SimpleTimer2 queue.
Nested Class Summary
Nested classes/interfaces inherited from class I2PThread
I2PThread.OOMEventListenerModifier and TypeClassDescriptionstatic interfaceListener for out-of-memory events.Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandlerField Summary
FieldsModifier and TypeFieldDescriptionprivate final SimpleTimer2.TimedEventThe reorganization timer instance.Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITYConstructor Summary
ConstructorsConstructorDescriptionCreate the thread that performs the reorganization.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidrun()Reorganize the profiles, periodically storing them and evicting stale ones.Methods inherited from class I2PThread
addOOMEventListener, fireOOM, removeOOMEventListener, startModifier and TypeMethodDescriptionstatic voidRegister a new component that wants notification of OOM events.protected voidfireOOM(OutOfMemoryError oom) Notify listeners that an OutOfMemoryError occurred.static voidUnregister a component that wants notification of OOM events.voidstart()Overridden to provide useful info to users on OOM, and to prevent shutting down the whole JVM for what is most likely not a heap issue.Methods inherited from class Thread
activeCount, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, startVirtualThread, threadId, toString, yield
Field Details
_event
The reorganization timer instance.
Constructor Details
ReorgThread
Create the thread that performs the reorganization.- Parameters:
event- the timer event used to schedule the next reorganization
Method Details
run