StreamProducer
instead.@Deprecated public class ObjectProducer<T> extends AbstractProducerStage<T>
outputPort
logger
Constructor and Description |
---|
ObjectProducer(long numInputObjects,
ConstructorClosure<T> inputObjectCreator)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
Deprecated.
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
ConstructorClosure<T> |
getInputObjectCreator()
Deprecated.
|
long |
getNumInputObjects()
Deprecated.
|
void |
setInputObjectCreator(ConstructorClosure<T> inputObjectCreator)
Deprecated.
|
void |
setNumInputObjects(long numInputObjects)
Deprecated.
|
getOutputPort, getTerminationStrategy
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
public ObjectProducer(long numInputObjects, ConstructorClosure<T> inputObjectCreator)
numInputObjects
- number of objects which should be instantiated and sentinputObjectCreator
- a ConstructorClosure
which creates the new instancespublic long getNumInputObjects()
public void setNumInputObjects(long numInputObjects)
public ConstructorClosure<T> getInputObjectCreator()
public void setInputObjectCreator(ConstructorClosure<T> inputObjectCreator)
protected void execute()
AbstractStage
execute
in class AbstractStage
Copyright © 2015–2020. All rights reserved.