Class BufferedDataStream<T>

  • All Implemented Interfaces:
    org.drools.ruleunits.api.DataSource<T>, org.drools.ruleunits.api.DataStream<T>

    public class BufferedDataStream<T>
    extends AbstractDataSource<T>
    implements org.drools.ruleunits.api.DataStream<T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.drools.ruleunits.api.DataSource

        org.drools.ruleunits.api.DataSource.Factory, org.drools.ruleunits.api.DataSource.FactoryHolder
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BufferedDataStream​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(T value)  
      void subscribe​(org.drools.ruleunits.api.DataProcessor<T> subscriber)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BufferedDataStream

        protected BufferedDataStream​(int size)
    • Method Detail

      • append

        public void append​(T value)
        Specified by:
        append in interface org.drools.ruleunits.api.DataStream<T>
      • subscribe

        public void subscribe​(org.drools.ruleunits.api.DataProcessor<T> subscriber)
        Specified by:
        subscribe in interface org.drools.ruleunits.api.DataSource<T>
        Overrides:
        subscribe in class AbstractDataSource<T>