Interface BlotterChannelListener
Specifically for the case where there is more than one Integration Adapter providing for the same channel subject.
Register this listener on incoming channels from BlotterApplicationListener.blotterChannelOpened(com.caplin.datasource.blotter.BlotterChannel)
A use case for two Integration Adapters providing for the same channel is having one publishing which items are available (BlotterItem
s with no fields set)
and another providing the row contents (BlotterItem
s with fields set). These item requests would
be received by the content-providing Integration Adapter for items submitted to the available-items-providing Integration Adapter.
These requests would be delegated to the BlotterChannelListener
to be serviced by
your application. Simply send the requested items through the above methods or submit a BlotterChannel.sendBlotterItemNotFound(java.lang.String)
to the channel received on the BlotterChannelListener
callback.
Refer to the BlotterConfiguration
for details on configuring this use case.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBlotterItemRequest
(BlotterChannel channel, String uniqueId) Called when a previously unsubmitted item in a blotter channel is requested.
-
Method Details
-
onBlotterItemRequest
Called when a previously unsubmitted item in a blotter channel is requested.
This callback enables a response to a blotter item request to be sent asynchronously, to respond to the request use
BlotterChannel.sendBlotterItem(com.caplin.datasource.blotter.BlotterItem)
or if a not found is required useBlotterChannel.sendBlotterItemNotFound(java.lang.String)
both using the same uniqueId as an input.- Parameters:
channel
- The user's blotter channeluniqueId
- The unique identifier for the blotter item in the channel
-