public interface DemandAware
Interface for demand-aware components.
A demand-aware component is aware of its demand for data that is read from the DemandAware.Source and possibly awaits processing.
A DemandAware.Sink with demand is ready to process data. A DemandAware.Sink without demand signals that it's ability to keep up with
the incoming data is no longer given and it wishes to receive no more data. Submitting more data could cause overload and
exhaust buffer space.
- Since:
- 5.0
- Author:
- Mark Paluch
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDemandAware.SinkA demand-awareDemandAware.Sinkthat accepts data.static interfaceDemandAware.SourceADemandAware.Sourceprovides data to aDemandAwareand can be notified to produce more input for the command.