Skip to main content

KeySessionListener

Class

trading.keysquare.api.session.KeySessionListener

Methods

void connected(boolean isFirstConnect)

Callback to indicate that the connection to the platform has been established.

Threading: invoked on "application" thread at startup. @param isFirstConnect indicates if this is the first time that the application has connected to the platform.

void disconnected()

Callback to indicate that the connection to the platform has been lost.

Threading: invoked on "application" thread.

void process(DirectBuffer buffer, int offset, int length, MessageHeaderDecoder messageHeaderDecoder)

Callback to process messages where a typed message processor hasn't been registered.

Threading: invoked on "application" thread.

Note that all objects being passed are owned by the calling thread and references should not be kept.

void processEdit(DirectBuffer currentVersionBuffer, int currentVersionOffset, int currentVersionLength, DirectBuffer editedVersionBuffer, int editedVersionOffset, int editedVersionLength, KeyHeaderDecoder keyHeader, AuditDecoder audit)

Callback to process message edits where a typed message edit processor hasn't been registered.

Threading: invoked on "application" thread.

Note that all objects being passed are owned by the calling thread and references should not be kept.

void postProcess(int count)

Callback for applications to perform post-processing - this is invoked periodically after a batch of fragments is processed.

Threading: invoked on "application" thread. @param count indicates the number of fragments processed.

void shutdown()

Callback for applications to perform shutdown - this is invoked before the session is closed.

Threading: invoked on "application" thread.

void onError(Throwable throwable)

Error handler for unexpected errors.