Interface DataSource<T>

  • Type Parameters:
    T - The type of objects managed by this DataSource.
    All Known Subinterfaces:
    DataStore<T>, DataStream<T>, SingletonStore<T>

    public interface DataSource<T>
    A strongly typed source of data for a RuleUnit.
    • Method Detail

      • subscribe

        void subscribe​(DataProcessor<T> subscriber)
        Subscribes this DataSource to a DataProcessor that will be notified of all the changes occurred to the facts going through the DataSource.
      • createStream

        static <T> DataStream<T> createStream()
        Creates a DataStream, a DataSource of immutable facts, without any buffer.
      • createBufferedStream

        static <T> DataStream<T> createBufferedStream​(int bufferSize)
        Creates a DataStream, a DataSource of immutable facts, without a buffer retaining at most the number of facts defined in bufferSize.
      • createStore

        static <T> DataStore<T> createStore()
        Creates a DataStore, a DataSource of mutable facts.