onMessage
The onMessage function handles the events received asynchronously from the API.
Synopsis
onMessage (String event)
Arguments
- event
- A string contained in the event, which is returned to the application.
Examples
public void onMessage( String event )
Return codes
The application returns true if the received event was processed with success, indicating to the API to remove the event from the cache or persistent log, or both to avoid resending the event in the future.
The application returns false if the event was not processed with success, indicating to the API to resend the event to the event server for further processing. In this case, the event is not removed from the cache or persistent log, or both.