示例#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();
    }
  }
示例#2
0
  @Override
  protected void stop() {
    stopTableCleanup();

    super.stop();
  }