Class TopicConfig<I>

    • Field Detail

      • name

        public final String name
      • store

        public final String store
      • tuplePublisher

        public final com.qfs.source.ITuplePublisher<I> tuplePublisher
      • messageChannelFactory

        public final Function<com.qfs.source.IStoreMessageChannelFactory<I,​?>,​com.qfs.msg.IMessageChannel<I,​?>> messageChannelFactory
    • Constructor Detail

      • TopicConfig

        public TopicConfig​(String name,
                           String store,
                           com.qfs.source.ITuplePublisher<I> tuplePublisher)
      • TopicConfig

        public TopicConfig​(String name,
                           String store,
                           com.qfs.source.ITuplePublisher<I> tuplePublisher,
                           Function<com.qfs.source.IStoreMessageChannelFactory<I,​?>,​com.qfs.msg.IMessageChannel<I,​?>> messageChannelFactory)
    • Method Detail

      • createChannel

        public <E> com.qfs.msg.IMessageChannel<I,​E> createChannel​(com.qfs.source.IStoreMessageChannelFactory<I,​E> messageChannelFactory)
        Create a message channel using messageChannelFactory if it is set, otherwise use messageChannelFactory.
        Specified by:
        createChannel in interface SimpleSourceConfig.ITopicConfig<I>
        Type Parameters:
        E - type of the data elements appended into message chunks.
        Parameters:
        messageChannelFactory - the store message channel factory
        Returns:
        the message channel
      • createChannel

        public static <I,​E> com.qfs.source.IStoreMessageChannel<I,​E> createChannel​(com.qfs.source.IStoreMessageChannelFactory<I,​E> messageChannelFactory,
                                                                                               String name,
                                                                                               String store,
                                                                                               com.qfs.source.ITuplePublisher<I> tuplePublisher)