public method O2GTable.subscribeUpdate

Brief

Subscribes a table listener to table updates.

Declaration
Java
void  subscribeUpdate (O2GTableUpdateType updateType, IO2GTableListener listener)

Parameters
updateType

The type of an update.

listener

An instance of the class implementing the IO2GTableListener interface.

Details

If you want to track different types of table updates, you must subscribe a table listener to each update type individually. The examples below are based on the Trades table.

Update type

Subscribe syntax

INSERT

tradesTable.subscribeUpdate(O2GTableUpdateType.INSERT, tableListener);

UPDATE

tradesTable.subscribeUpdate(O2GTableUpdateType.UPDATE, tableListener);

DELETE

tradesTable.subscribeUpdate(O2GTableUpdateType.DELETE, tableListener);

Declared in O2GTable

back