T
- the type of the elements which this pipe should transfer.public abstract class AbstractSynchedPipe<T> extends AbstractPipe<T>
cachedTargetStage
Modifier | Constructor and Description |
---|---|
protected |
AbstractSynchedPipe(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.
|
ISignal |
getSignal()
Retrieves and removes the head of the signal queue
|
boolean |
isClosed() |
void |
reportNewElement()
Deprecated.
since 3.0. Is removed without replacement.
|
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 AbstractSynchedPipe(OutputPort<? extends T> sourcePort, InputPort<T> targetPort)
public void sendSignal(ISignal signal)
IPipe
signal
- The signal which needs to be passed on.public ISignal getSignal()
null
if signal queue is empty.@Deprecated public void reportNewElement()
IPipe
public final void waitForStartSignal() throws InterruptedException
InterruptedException
public final 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 final void close()
IPipe
Copyright © 2015–2020. All rights reserved.