public interface TableListener
extends java.lang.AutoCloseable
TableEventHandler
The call that creates a TableListener is
Table.createTableListener.
A program that creates a TableListener must explicitly call
TableListener.close to reclaim its resources.
This interface is implemented internally. Applications do not implement this interface.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TIBDG_LISTENER_PROPERTY_STRING_EVENT_TYPE_LIST
Property name for TableListener event type list; string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close a TableListener.
|
java.lang.String |
getFilter()
Get the filter string used during creation of TableListener.
|
Table |
getTable()
Get the Table object that was used to create the TableListener.
|
static final java.lang.String TIBDG_LISTENER_PROPERTY_STRING_EVENT_TYPE_LIST
When creating a table listener, supply this property to Table.createTableListener.
Its value should be a string containing a comma separated list of event types
that can be used to configure the listener to only
receive events of a specific type or types (ex: only expired and deleted).
Only put, delete, and expired are currently supported as valid event types to use in the string.
Error events will always be delivered.
Use the utility function EventType.listToString to construct the string
from an array of event types.
Table getTable() throws DataGridException
TableDataGridException - in case of failuresjava.lang.String getFilter()
throws DataGridException
DataGridException - in case of failuresvoid close()
throws DataGridException
Release all resources associated with this TableListener object.
close in interface java.lang.AutoCloseableDataGridException - in case of failures