Class Pipeline<S,T>
- java.lang.Object
-
- co.paralleluniverse.strands.channels.transfer.Pipeline<S,T>
-
- All Implemented Interfaces:
SuspendableCallable<java.lang.Long>,java.io.Serializable
public class Pipeline<S,T> extends java.lang.Object implements SuspendableCallable<java.lang.Long>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer)Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism)Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo)Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo, SuspendableCallable<Channel<T>> resultChannelBuilder)Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo, SuspendableCallable<Channel<T>> resultChannelBuilder, StrandFactory strandFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTransferred()java.lang.Longrun()
-
-
-
Constructor Detail
-
Pipeline
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo, SuspendableCallable<Channel<T>> resultChannelBuilder, StrandFactory strandFactory)
-
Pipeline
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo, SuspendableCallable<Channel<T>> resultChannelBuilder)
-
Pipeline
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo)
-
Pipeline
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism)
-
Pipeline
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer)
-
-
Method Detail
-
getTransferred
public long getTransferred()
-
run
public java.lang.Long run() throws SuspendExecution, java.lang.InterruptedException- Specified by:
runin interfaceSuspendableCallable<S>- Throws:
SuspendExecutionjava.lang.InterruptedException
-
-