public interface Event
Table Listeners receive event objects in their callback to indicate that a change has occurred on the table they are listening on. Event objects are owned by the ActiveSpaces library and must not be accessed outside of the span of the Table Listener's callback function.
This interface is implemented internally. Applications do not implement this interface.
Modifier and Type | Field and Description |
---|---|
static int |
TIBDG_EVENT_ERRORCODE_COPYSET_LEADER_FAILURE |
static int |
TIBDG_EVENT_ERRORCODE_GRID_REDISTRIBUTING |
static int |
TIBDG_EVENT_ERRORCODE_INVALID |
static int |
TIBDG_EVENT_ERRORCODE_TABLE_DELETED |
Modifier and Type | Method and Description |
---|---|
Row |
getCurrent()
Get the value of the row after the Put event
|
int |
getErrorCode()
Get the errorcode from an error event
|
java.lang.String |
getErrorDescription()
Get the description from an error event
|
Row |
getPrevious()
Get the value of the row of prior to the Put or Delete event
|
EventType |
getType()
Get the type of the event
|
static final int TIBDG_EVENT_ERRORCODE_INVALID
static final int TIBDG_EVENT_ERRORCODE_TABLE_DELETED
static final int TIBDG_EVENT_ERRORCODE_COPYSET_LEADER_FAILURE
static final int TIBDG_EVENT_ERRORCODE_GRID_REDISTRIBUTING
EventType getType() throws DataGridException
Other event functions only apply to certain types of events, so getType should be called to avoid exceptions.
DataGridException
- in case of failuresRow getPrevious() throws DataGridException
Calling getPrevious is only valid on Put and Delete events. The call will return null on a Put event where there was no previous value.
DataGridException
- in case of failuresRow getCurrent() throws DataGridException
Calling getCurrent is only valid on Put events.
DataGridException
- in case of failuresint getErrorCode() throws DataGridException
The value will be one of the errorcode constants
DataGridException
- in case of failuresjava.lang.String getErrorDescription() throws DataGridException
DataGridException
- in case of failures