Interface Pump<O,​T>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.util.function.Consumer<O>, org.comroid.api.Disposable, org.comroid.api.ExecutorBound, Pipe<O,​T>, Pipeable<T>, ReferenceIndex<T>
    All Known Implementing Classes:
    BasicPump

    public interface Pump<O,​T>
    extends Pipe<O,​T>, org.comroid.api.ExecutorBound
    • Method Detail

      • create

        static <T> Pump<T,​T> create()
      • create

        static <T> Pump<T,​T> create​(java.util.concurrent.Executor executor)
      • of

        static <T> Pump<T,​T> of​(java.util.Collection<T> collection)
      • addStage

        <R> Pump<T,​R> addStage​(java.util.concurrent.Executor executor,
                                     StageAdapter<T,​R> stage)