public class Pipeline<S,T> extends java.lang.Object implements SuspendableCallable<java.lang.Long>
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
long |
getTransferred() |
java.lang.Long |
run() |
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)
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo, SuspendableCallable<Channel<T>> resultChannelBuilder)
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism, boolean closeTo)
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer, int parallelism)
public Pipeline(ReceivePort<? extends S> from, SendPort<? super T> to, SuspendableAction2<S,Channel<T>> transformer)
public long getTransferred()
public java.lang.Long run()
throws SuspendExecution,
java.lang.InterruptedException
run in interface SuspendableCallable<java.lang.Long>SuspendExecutionjava.lang.InterruptedException