public class DynamicMerger<T> extends Merger<T>
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<PortAction<DynamicMerger<T>>> |
portActions |
logger| Constructor and Description |
|---|
DynamicMerger() |
DynamicMerger(IMergerStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPortActionRequest(PortAction<DynamicMerger<T>> newPortActionRequest) |
protected void |
checkForPendingPortActionRequest() |
protected void |
execute()
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
void |
onTerminating()
Event that is triggered, if all of the following conditions hold:
while executing the P&F configuration and
after receiving the termination signal.
|
void |
removeDynamicPort(InputPort<?> inputPort) |
getInputPorts, getNewInputPort, getOutputPort, getStrategy, setStrategyabort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onValidating, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompletedprotected final BlockingQueue<PortAction<DynamicMerger<T>>> portActions
public DynamicMerger()
public DynamicMerger(IMergerStrategy strategy)
protected void execute()
AbstractStagepublic void onTerminating()
AbstractStageIf stage developers want to override this method, they must always call the super implementation last:
@Override
protected void onTerminating() {
// insert your code here
super.onTerminating();
}
To throw a checked exception, wrap it to an unchecked exception, e.g. to an IllegalArgumentException.IllegalArgumentException(String, Throwable).
Always pass the original exception to the new unchecked exception to allow easy debugging.
onTerminating in class AbstractStageprotected void checkForPendingPortActionRequest()
public void removeDynamicPort(InputPort<?> inputPort)
removeDynamicPort in class AbstractStagepublic boolean addPortActionRequest(PortAction<DynamicMerger<T>> newPortActionRequest)
Copyright © 2015–2020. All rights reserved.