Skip to main content

KeySessionExperimental

Class

trading.keysquare.api.session.KeySessionExperimental

Methods

Edit

void registerEditProcessor(Class<T> messageDecoderFlyweightClass, MessageEditProcessor<T> messageEditProcessor)

Register an edit processor for a given type. Message edit requests for this type will be routed to the supplied message processor.

This may only be invoked before starting the session.

void registerEditProcessor(Class<T> dtoClass, DtoMessageEditProcessor<T> messageEditDtoProcessor)

Register an edit processor for a given type. Message edit requests for this type will be routed to the supplied message processor.

This may only be invoked before starting the session.

void registerEditProcessor(Class<T> typeClass, FlexibleMessageEditProcessor<T> messageEditFlexibleProcessor)

Register an edit processor for a flexible types. Message edit requests for this type will be routed to the supplied message processor.

This may only be invoked before starting the session.

Result edit(CharSequence correlationId, DirectBuffer buffer, int offset, int length, CharSequence ipAddress, CharSequence username)

Request an edit for the supplied buffer.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

This method allows an ipAddress and username to be provided which can provide auditing information when actions are taken on behalf of another application/user. When this isn't the case, use the alternative edit method provided which automatically applies the ip address and application name of the application calling the method.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, DirectBuffer buffer, int offset, int length)

Request an edit for the supplied buffer.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

The ipAddress and application name of this application calling the method will be provided in the edit request.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, MessageEncoderFlyweight messageEncoderFlyweight)

Request an edit for the supplied encoder.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

This method allows an ipAddress and username to be provided which can provide auditing information when actions are taken on behalf of another application/user. When this isn't the case, use the alternative edit method provided which automatically applies the ip address and application name of the application calling the method.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, MessageEncoderFlyweight messageEncoderFlyweight, CharSequence ipAddress, CharSequence username)

Request an edit for the supplied encoder.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

The ipAddress and application name of this application calling the method will be provided in the edit request.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, KeyDto dto, CharSequence ipAddress, CharSequence username)

Request an edit for the supplied DTO.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

This method allows an ipAddress and username to be provided which can provide auditing information when actions are taken on behalf of another application/user. When this isn't the case, use the alternative edit method provided which automatically applies the ip address and application name of the application calling the method.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, KeyDto dto)

Request an edit for the supplied DTO.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

The ipAddress and application name of this application calling the method will be provided in the edit request.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, Object object, KeyHeader originalKeyHeader, CharSequence ipAddress, CharSequence username)

Request an edit for the supplied Object.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

This method allows an ipAddress and username to be provided which can provide auditing information when actions are taken on behalf of another application/user. When this isn't the case, use the alternative edit method provided which automatically applies the ip address and application name of the application calling the method.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Result edit(CharSequence correlationId, Object object, KeyHeader originalKeyHeader)

Request an edit for the supplied Object.

The edit will be directed at the application that published the data and therefore has the application id set in the key header. The correlation id will be used as part of the topic id in the acknowledgement from the requested application.

The ipAddress and application name of this application calling the method will be provided in the edit request.

Permissions must be set via key-access to allow applications to submit edit requests.

Return a Result which can be checked for success.

Subscription

Result subscribeTopicSet(String topicSource, String topicGroup, String topicId, TopicSetSubscriptionListener listener)

Subscribe to the topic set found at the given topic.

Result unsubscribeTopicSet(String topicSource, String topicGroup, String topicId, UnsubscriptionListener listener)

Unsubscribe to the topic set found at the given topic.