Interface SimpleMessageHandlerListener
public interface SimpleMessageHandlerListener
Clients should implement this to receive decoded messages from the SimpleMessageHandler.
-
Method Summary
Modifier and Type Method Description voidonBeginTableUpdate(int subscriptionId)Implement this method to receive notification of the start of a table data update.voidonConnectionError(IOException ex)Occurs when an unexpected IO error occurs with the client connection, preceding client death.voidonEndTableUpdate(int subscriptionId)Implement this method to receive notification of the end of a table data update.voidonRowsAdded(int subscriptionId, int columnId, long[] rows, Object[] values, int nRows)Implement this method to receive notification of rows added to a column.voidonRowsModified(int subscriptionId, int columnId, long[] rows, Object[] values, int nRows)Implement this method to receive notification of modified rows in a column.voidonRowsRemoved(int subscriptionId, long[] rows, int nRows)Implement this method to receive notification of rows removed from a table.voidonSubscribeResponse(int subscriptionId, Map<Integer,ColumnInfo> columnData)Implement this method to receive notification of subscription confirmation messages.voidonSubscriptionError(int subscriptionId, TableSubscriptionErrorCode errorCode, String errorMessage)Implement this method to receive notification of errors related to subscriptions.voidonUnsubscribeResponse(int subscriptionId)Implement this method to receive notification of unsubscribe confirmation messages.
-
Method Details
-
onConnectionError
Occurs when an unexpected IO error occurs with the client connection, preceding client death.- Parameters:
ex- The error that resulted in this notification.
-
onSubscribeResponse
Implement this method to receive notification of subscription confirmation messages.- Parameters:
subscriptionId- The subscription identifiercolumnData- Column information for the subscribed table
-
onUnsubscribeResponse
void onUnsubscribeResponse(int subscriptionId)Implement this method to receive notification of unsubscribe confirmation messages.- Parameters:
subscriptionId- The subscription identifier
-
onSubscriptionError
void onSubscriptionError(int subscriptionId, TableSubscriptionErrorCode errorCode, String errorMessage)Implement this method to receive notification of errors related to subscriptions.- Parameters:
subscriptionId- The subscription identifiererrorCode- Error codeerrorMessage- Textual description of the error
-
onBeginTableUpdate
void onBeginTableUpdate(int subscriptionId)Implement this method to receive notification of the start of a table data update.- Parameters:
subscriptionId- The subscription identifier
-
onEndTableUpdate
void onEndTableUpdate(int subscriptionId)Implement this method to receive notification of the end of a table data update.- Parameters:
subscriptionId- The subscription identifier
-
onRowsAdded
Implement this method to receive notification of rows added to a column.- Parameters:
subscriptionId- The subscription identifiercolumnId- Affected columnrows- Array of row indexes affected by this updatevalues- Array of values corresponding to the rowsnRows- Number of rows (nRows-1 is the last valid index in rows and values)
-
onRowsModified
Implement this method to receive notification of modified rows in a column.- Parameters:
subscriptionId- The subscription identifiercolumnId- Affected columnrows- Array of row indexes affected by this updatevalues- Array of values corresponding to the rowsnRows- Number of rows (nRows-1 is the last valid index in rows and values)
-
onRowsRemoved
void onRowsRemoved(int subscriptionId, long[] rows, int nRows)Implement this method to receive notification of rows removed from a table.- Parameters:
subscriptionId- The subscription identifierrows- Array of row indexes affected by this updatenRows- Number of rows (nRows-1 is the last valid index in rows)
-