Class WriteSubscription


  • public class WriteSubscription
    extends Object
    The information for a write subscription to a datasource channel. It consists of a channel name, which identifies the channel, and a collector, which is used to update the data.
    Author:
    carcassi
    • Constructor Detail

      • WriteSubscription

        public WriteSubscription​(String channelName,
                                 WriteCollector writeCollector)
        Creates a new write subscription for the given channel and collector.
        Parameters:
        channelName - the name of the channel to connect to
        writeCollector - the collector for the write operations
    • Method Detail

      • getChannelName

        public String getChannelName()
        The name of the channel to write to.
        Returns:
        the channel name
      • getCollector

        public WriteCollector getCollector()
        The collector to be connected to the channel.
        Returns:
        the write collector
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object