public void setTableCleanupInterval(int value, boolean action) { int oldValue = tableCleanupInterval; tableCleanupInterval = value; if (action) { if (oldValue == 0) startTableCleanup(); else if (tableCleanupInterval == 0) stopTableCleanup(); } }
@Override protected void stop() { stopTableCleanup(); super.stop(); }