public class CompositeStage extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_PIPE_CAPACITY
Default capacity for pipes
|
Modifier | Constructor and Description |
---|---|
protected |
CompositeStage() |
Modifier and Type | Method and Description |
---|---|
protected <T> void |
connectPorts(OutputPort<? extends T> sourcePort,
InputPort<T> targetPort)
Connects two ports with a pipe with a default capacity of currently 512.
|
protected <T> void |
connectPorts(OutputPort<? extends T> sourcePort,
InputPort<T> targetPort,
int capacity)
Connects to ports with a pipe of a certain capacity
|
protected <T> InputPort<T> |
createInputPort(InputPort<T> subStageInputPort) |
protected <T> OutputPort<T> |
createOutputPort(OutputPort<T> subStageOutputPort) |
protected static final int DEFAULT_PIPE_CAPACITY
protected final <T> void connectPorts(OutputPort<? extends T> sourcePort, InputPort<T> targetPort)
T
- the type of elements to be sentsourcePort
- OutputPort
of the sending stagetargetPort
- InputPort
of the sending stageprotected <T> void connectPorts(OutputPort<? extends T> sourcePort, InputPort<T> targetPort, int capacity)
T
- the type of elements to be sentsourcePort
- OutputPort
of the sending stagetargetPort
- InputPort
of the sending stagecapacity
- the pipe is set to this capacity, if the value is greater than 0. If it is 0, than the pipe is unbounded, thus growing of the pipe is enabled.protected <T> OutputPort<T> createOutputPort(OutputPort<T> subStageOutputPort)
Copyright © 2015–2020. All rights reserved.