public 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 how to configure the BlotterProvider
for this use case.
Modifier and Type | Method and Description |
---|---|
void |
onBlotterItemRequest(BlotterChannel channel,
java.lang.String uniqueId)
Called when a previously unsubmitted item in a blotter channel is requested.
|
void onBlotterItemRequest(BlotterChannel channel, java.lang.String uniqueId)
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 use BlotterChannel.sendBlotterItemNotFound(java.lang.String)
both using the same uniqueId as an input.
channel
- The user's blotter channeluniqueId
- The unique identifier for the blotter item in the channelPlease send bug reports and comments to Caplin support