Interface BlotterChannel

    • Method Detail

      • closeChannel

        void closeChannel()

        Closes the channel.

        Sends a Subject Not Found on the channel's subject to let subscribers know that it is no longer serviced.

      • getSubject

        java.lang.String getSubject()

        Returns the subject for the channel.

        Returns:
        subject for the channel
      • getUsername

        java.lang.String getUsername()

        Returns the username for the channel

        Returns:
        username for the channel
      • getParameters

        java.lang.String getParameters()

        Returns the parameters for the channel

        Returns:
        parameters for the channel
      • removeBlotterItem

        void removeBlotterItem​(java.lang.String uniqueId)

        Removes the BlotterItem from the internal cache and sends a container remove so that this item is no longer requested when the channel is subscribed to.

        Parameters:
        uniqueId - of the item to remove
      • removeBlotterItems

        void removeBlotterItems​(java.util.List<java.lang.String> uniqueIds)

        Removes BlotterItems from the internal cache and sends a container remove so that these items are no longer requested when the channel is subscribed to.

        Parameters:
        uniqueIds - of the items to remove
      • clear

        void clear()

        Clears all BlotterItems from the internal cache and sends a container clear so that these items are no longer requested when the channel is subscribed to.

      • sendBlotterItem

        void sendBlotterItem​(BlotterItem item)

        Adds the BlotterItem to the internal cache and sends a container add so that this item is requested when the channel is subscribed to.

        If an item with the same unique id already exists in the internal cache then that item's fields will be updated with this one. This will then trigger an update for any users currently subscribed to this item.

        Parameters:
        item - to send
      • sendBlotterItems

        void sendBlotterItems​(java.util.List<BlotterItem> items)

        Adds BlotterItems to the internal cache and sends a container add so that these items are requested when the channel is subscribed to.

        If any items with the same unique id already exists in the internal cache then these items fields will be updated with these one. This will then trigger an update for any users currently subscribed to these items.

        Parameters:
        items - to send
      • sendBlotterMapping

        void sendBlotterMapping​(java.lang.String newSubject)

        Sends a MappingMessage to the Liberator, requesting that the Liberator map this BlotterChannel instance's subject to the specified subject newSubject.

        Note: Liberator applies mapping rules configured by mapping messages after it applies mapping rules configured by object-map config items.

        This method can be used to provide a user with access to a shared group blotter via a general subject, such as /PRIVATE/FX/GROUPBLOTTER. In the BlotterApplicationListener.blotterChannelOpened(com.caplin.datasource.blotter.BlotterChannel) method for the general subject, determine which group the user is a member of and call sendBlotterMapping(java.lang.String), passing it the subject of the group's blotter.

        Parameters:
        newSubject - the subject to map this blotter's subject to
      • sendBlotterItemStatusOk

        void sendBlotterItemStatusOk​(java.lang.String uniqueId)

        Send status ok for a BlotterItem.

        Under normal circumstances this method is not used.

        Parameters:
        uniqueId - of the message whose status is OK
      • sendBlotterItemStatusStale

        void sendBlotterItemStatusStale​(java.lang.String uniqueId)

        Send status stale for a BlotterItem.

        Under normal circumstances this method is not used.

        Parameters:
        uniqueId - of the message whose status is STALE
      • sendBlotterStatusOk

        void sendBlotterStatusOk()

        Sends a status ok on the channel.

        Under normal circumstances this method is not used.

      • sendBlotterStatusStale

        void sendBlotterStatusStale()

        Sends a status stale on the channel.

        Under normal circumstances this method is not used.

      • setBlotterChannelListener

        void setBlotterChannelListener​(BlotterChannelListener listener)

        Sets a BlotterChannelListener on the channel.

        Specifically for the case where there is more than one Integration Adapter providing for the same channel subject.

        See BlotterConfiguration for how to configure for this eventuality.

        Parameters:
        listener - to receive requests for items not already cached by the BlotterAPI