Class BasicPump<O,​T>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.function.Consumer<O>, org.comroid.api.Disposable, org.comroid.api.ExecutorBound, Pipe<O,​T>, Pipeable<T>, Pump<O,​T>, ReferenceIndex<T>

    public class BasicPump<O,​T>
    extends BasicPipe<O,​T>
    implements Pump<O,​T>
    • Method Detail

      • getExecutor

        public java.util.concurrent.Executor getExecutor()
        Specified by:
        getExecutor in interface org.comroid.api.ExecutorBound
      • addStage

        public <R> Pump<T,​R> addStage​(java.util.concurrent.Executor executor,
                                            StageAdapter<T,​R> stage)
        Specified by:
        addStage in interface Pump<O,​T>
      • accept

        public void accept​(O it)
        Specified by:
        accept in interface java.util.function.Consumer<O>
        Specified by:
        accept in interface Pipe<O,​T>
        Overrides:
        accept in class BasicPipe<O,​T>