@NotThreadSafe public final class SessionCleaner extends Object implements Runnable
Constructor and Description |
---|
SessionCleaner(Sessions sessions,
SessionCleanable... sessionCleanable)
Creates a new instance of
SessionCleaner . |
Modifier and Type | Method and Description |
---|---|
void |
run()
Main loop for the cleanup, continuously looks for zombie sessions.
|
void |
stop()
Stops the checking, once this method is called, the object should be discarded.
|
public SessionCleaner(Sessions sessions, SessionCleanable... sessionCleanable)
SessionCleaner
.sessions
- the worker's sessions will be clean up by callback if which has been timeoutsessionCleanable
- who wants to cleanup the sessionCopyright © 2023. All Rights Reserved.