java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.jdbc.TableState
All Implemented Interfaces:
Serializable

public class TableState extends Object implements Serializable
This is used by various elements of the JDBC disk cache to indicate the status of a table. The MySQL disk cache, for instance, marks the status as optimizing when a scheduled optimization is taking place. This allows the cache to balk rather than block during long running optimizations.
See Also:
  • Field Details

  • Constructor Details

    • TableState

      public TableState(String tableName)
      Construct a usable table state.

      Parameters:
      tableName -
  • Method Details

    • setTableName

      public void setTableName(String tableName)
      Parameters:
      tableName - The tableName to set.
    • getTableName

      public String getTableName()
      Returns:
      Returns the tableName.
    • setState

      public void setState(int state)
      Parameters:
      state - The state to set.
    • getState

      public int getState()
      Returns:
      Returns the state.
    • toString

      public String toString()
      Write out the values for debugging purposes.

      Overrides:
      toString in class Object
      Returns:
      String