T
- the type of the elements which this pipe should transfer.public abstract class AbstractUnsynchedPipe<T> extends AbstractPipe<T>
cachedTargetStage
Modifier | Constructor and Description |
---|---|
protected |
AbstractUnsynchedPipe(OutputPort<? extends T> sourcePort,
InputPort<T> targetPort) |
Modifier and Type | Method and Description |
---|---|
void |
close()
May only be invoked by the input port and the owning (target) stage.
|
boolean |
isClosed() |
void |
reportNewElement()
Stages report new elements with this method.
|
void |
sendSignal(ISignal signal)
A stage can pass on a signal by executing this method.
|
void |
waitForStartSignal() |
getCachedTargetStage, getScheduler, getSourcePort, getTargetPort, hasMore, setScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, addNonBlocking, capacity, isEmpty, removeLast, size
protected AbstractUnsynchedPipe(OutputPort<? extends T> sourcePort, InputPort<T> targetPort)
public final void sendSignal(ISignal signal)
IPipe
signal
- The signal which needs to be passed on.public final void reportNewElement()
IPipe
public boolean isClosed()
true
if the pipe is closed, that is, if the pipe is empty and if the source stage will not send any elements anymore (because the
stage has finished its whole work);
returns false
in all other cases.public void close()
IPipe
public void waitForStartSignal() throws InterruptedException
InterruptedException
Copyright © 2015–2020. All rights reserved.