O
- the type of the default output portpublic abstract class AbstractProducerStage<O> extends AbstractStage
ProducerStage
produces at least one element at each execution.Modifier and Type | Field and Description |
---|---|
protected OutputPort<O> |
outputPort |
logger
Constructor and Description |
---|
AbstractProducerStage() |
AbstractProducerStage(org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
OutputPort<O> |
getOutputPort() |
TerminationStrategy |
getTerminationStrategy()
Deprecated.
since 3.0.
We will completely remove framework-backed support for infinite producers since it has never worked correctly in all (corner) cases.
Instead, please use finite producers and implement an appropriate termination condition by your own.
|
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, execute, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
protected final OutputPort<O> outputPort
public AbstractProducerStage()
public AbstractProducerStage(org.slf4j.Logger logger)
logger
- a custom logger (potentially shared by multiple stage instances)public final OutputPort<O> getOutputPort()
@Deprecated public TerminationStrategy getTerminationStrategy()
getTerminationStrategy
in class AbstractStage
Copyright © 2015–2020. All rights reserved.