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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addNonBlocking, capacity, isEmpty, removeLast, sizeprotected AbstractSynchedPipe(OutputPort<? extends T> sourcePort, InputPort<T> targetPort)
public void sendSignal(ISignal signal)
IPipesignal - The signal which needs to be passed on.public ISignal getSignal()
null if signal queue is empty.@Deprecated public void reportNewElement()
IPipepublic final void waitForStartSignal()
throws InterruptedException
InterruptedExceptionpublic 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()
IPipeCopyright © 2015–2020. All rights reserved.