Class TableState
java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.jdbc.TableState
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A potentially table locking deletion is runningstatic final int
The table is free.static final int
A table locking optimization is running. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getState()
void
setState
(int state) void
setTableName
(String tableName) toString()
Write out the values for debugging purposes.
-
Field Details
-
FREE
The table is free. It can be accessed and no potentially table locking jobs are running.- See Also:
-
DELETE_RUNNING
A potentially table locking deletion is running- See Also:
-
OPTIMIZATION_RUNNING
A table locking optimization is running.- See Also:
-
-
Constructor Details
-
TableState
Construct a usable table state.- Parameters:
tableName
-
-
-
Method Details