Esempio n. 1
0
  public void setTableCleanupInterval(int value, boolean action) {
    int oldValue = tableCleanupInterval;
    tableCleanupInterval = value;

    if (action) {
      if (oldValue == 0) startTableCleanup();
      else if (tableCleanupInterval == 0) stopTableCleanup();
    }
  }
Esempio n. 2
0
  @Override
  protected void stop() {
    stopTableCleanup();

    super.stop();
  }