public interface Table<T extends Row>
An abstract structure for tables.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTableListener
(TableListener listener) Registers aTableListener
to be notified when the cached data for this table expires.void
addTableListener
(TableListener listener, long batchTime) Registers aTableListener
to be notified when the cached data for this table expires.getRows()
void
removeTableListener
(TableListener listener) Removes aTableListener
from the list of objects being notified when the data is updated.
-
Method Details
-
addTableListener
Registers aTableListener
to be notified when the cached data for this table expires. The default batching is used.- See Also:
-
addTableListener
Registers aTableListener
to be notified when the cached data for this table expires. Repetitive incoming requests will be batched into fewer events, in increments provided by batchTime. If batchTime is 0, the event is immediately and always distributed. Batched events are performed in concurrent Threads, while immediate events are triggered by the central cache invalidation thread. In other words, don't use a batchTime of zero unless you absolutely need your code to run immediately, because it causes serial processing of the event and may potentially slow down the responsiveness of the server. -
removeTableListener
Removes aTableListener
from the list of objects being notified when the data is updated. -
getRows
- Throws:
IOException
SQLException
-
getTableName
- Throws:
IOException
SQLException
-