Package org.drools.ruleunits.api

## Interface DataStream<T>

- Type Parameters:
    `T` - The type of objects managed by this DataSource.
  All Superinterfaces:
    `DataSource<T>`

      public interface DataStream<T>
      extends DataSource<T>

  A `DataSource` of immutable data. By default, this Stream doesn't retain any data and just forwards the facts appended to it to the `DataProcessor`s that are registered at the time of insertion. In particular this means that if a fact is inserted into the DataStream declared in a `RuleUnitData` before any `RuleUnitInstance` has been created from it, this fact's insertion will be simply get lost. It can be optionally buffered and retain a fixed amount of the latest appended facts.

- - ### Nested Class Summary

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

      `DataSource.Factory, DataSource.FactoryHolder`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `append​(T value)` | Append an object to this stream of data.

    - ### Methods inherited from interface org.drools.ruleunits.api.DataSource

      `subscribe`

- - ### Method Detail

    - #### append

          void append​(T value)

      Append an object to this stream of data.