public final class HttpSessionCleanupTask extends TimerTask implements RepeatingTask
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpSessionCleanupTask.Binder
HK2 Binder for our injector context.
|
| Constructor and Description |
|---|
HttpSessionCleanupTask(org.hibernate.SessionFactory sessionFactory,
DatabaseMigrationState dbState)
Create a new instance of this task, with injected parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPeriod()
Time in milliseconds between successive task executions.
|
TimerTask |
getTask()
The task to execute.
|
void |
run()
The action to be performed by this timer task.
|
cancel, scheduledExecutionTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDelay@Inject
public HttpSessionCleanupTask(org.hibernate.SessionFactory sessionFactory,
DatabaseMigrationState dbState)
sessionFactory - The hibernate session factory, from which we
grab database sessions.dbState - The database migration state, used to indicate
whether the DB is stable enough to run this query.public TimerTask getTask()
getTask in interface RepeatingTaskpublic long getPeriod()
getPeriod in interface RepeatingTaskCopyright © 2018 krotscheck.net. All rights reserved.