Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public interface Table<T extends Row>
| Modifier and Type | Method and Description |
|---|---|
void |
addTableListener(TableListener listener)
Registers a
TableListener to be notified when
the cached data for this table expires. |
void |
addTableListener(TableListener listener,
long batchTime)
Registers a
TableListener to be notified when
the cached data for this table expires. |
List<T> |
getRows() |
String |
getTableName() |
void |
removeTableListener(TableListener listener)
Removes a
TableListener from the list of
objects being notified when the data is updated. |
void addTableListener(TableListener listener)
TableListener to be notified when
the cached data for this table expires. The default
batching is used.addTableListener(TableListener,long)void addTableListener(TableListener listener, long batchTime)
TableListener 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.void removeTableListener(TableListener listener)
TableListener from the list of
objects being notified when the data is updated.List<T> getRows() throws IOException, SQLException
IOExceptionSQLExceptionString getTableName() throws IOException, SQLException
IOExceptionSQLExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.