public class Configuration extends CompositeStage
DEFAULT_PIPE_CAPACITY
Constructor and Description |
---|
Configuration() |
Configuration(AbstractExceptionListenerFactory<?> factory) |
Configuration(AbstractExceptionListenerFactory<?> factory,
ConfigurationContext context)
Deprecated.
since 3.0. Scheduled to be removed in 3.1 or above. Use
Configuration(AbstractExceptionListenerFactory) instead. |
Modifier and Type | Method and Description |
---|---|
<T> void |
connectPorts(OutputPort<? extends T> sourcePort,
InputPort<T> targetPort,
int capacity)
Connects to ports with a pipe of a certain capacity
|
<T> void |
connectPorts(OutputPort<? extends T> sourcePort,
InputPort<T> targetPort,
int capacity,
IPipeFactory pipeFactory) |
<T> void |
connectPorts(OutputPort<? extends T> sourcePort,
InputPort<T> targetPort,
IPipeFactory pipeFactory) |
<O> ConfigurationBuilder.Connection<O> |
from(AbstractProducerStage<O> stage) |
void |
registerCustomPipe(AbstractPipe<?> pipe)
Deprecated.
since 3.0. Use
connectPorts(OutputPort, InputPort, IPipeFactory) instead. |
connectPorts, createInputPort, createOutputPort
public Configuration()
public Configuration(AbstractExceptionListenerFactory<?> factory)
factory
- to define a common exception behavior@Deprecated public Configuration(AbstractExceptionListenerFactory<?> factory, ConfigurationContext context)
Configuration(AbstractExceptionListenerFactory)
instead.factory
- that defines a common exception behaviorcontext
- that includes the scheduler algorithm to use@Deprecated public void registerCustomPipe(AbstractPipe<?> pipe)
connectPorts(OutputPort, InputPort, IPipeFactory)
instead.CompositeStage.connectPorts(OutputPort, InputPort)
is never called.pipe
- A custom pipe instancepublic <T> void connectPorts(OutputPort<? extends T> sourcePort, InputPort<T> targetPort, int capacity)
CompositeStage
connectPorts
in class CompositeStage
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.public <T> void connectPorts(OutputPort<? extends T> sourcePort, InputPort<T> targetPort, IPipeFactory pipeFactory)
public <T> void connectPorts(OutputPort<? extends T> sourcePort, InputPort<T> targetPort, int capacity, IPipeFactory pipeFactory)
public <O> ConfigurationBuilder.Connection<O> from(AbstractProducerStage<O> stage)
Copyright © 2015–2020. All rights reserved.