public final class MultipleInstanceOfFilter<I> extends AbstractConsumerStage<I>
inputPort
logger
Constructor and Description |
---|
MultipleInstanceOfFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(I element)
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
<T extends I> |
getOutputPortForType(Class<T> clazz) |
void |
onStarting()
Event that is triggered, if all of the following conditions hold:
after passing the validation phase and
after the threads are ready-to-run and
just before the threads execute any stage.
|
createInputPort, execute, getInputPort
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
public <T extends I> OutputPort<T> getOutputPortForType(Class<T> clazz)
public void onStarting()
AbstractStage
If stage developers want to override this method, they must always call the super implementation first:
@Override protected void onStarting() { super.onStarting(); // insert your code here }
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.
onStarting
in class AbstractStage
protected void execute(I element)
AbstractConsumerStage
execute
in class AbstractConsumerStage<I>
element
- the next non-null element from the (only) input port of this stageCopyright © 2015–2020. All rights reserved.