public abstract class AbstractStage<M,C extends StageConfig> extends java.lang.Object implements Stage<M,C>
Modifier and Type | Method and Description |
---|---|
C |
getConfiguration() |
ContextFactory |
getContextFactory() |
java.lang.String |
getId() |
MetricRegistry |
getMetricRegistry() |
void |
handleSignal(java.lang.String signal,
java.lang.String value,
Context context)
Handle a signal
|
void |
init() |
void |
process(M message,
Context context,
StageOutput<M> output)
Implements the default behavior for a stage when it receives a message (which is to simply pass it to the next stage)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageClass
getStageConfigClass
public C getConfiguration()
getConfiguration
in interface Configurable<C extends StageConfig>
public void init()
init
in interface Configurable<C extends StageConfig>
public java.lang.String getId()
getId
in interface Stage<M,C extends StageConfig>
public ContextFactory getContextFactory()
getContextFactory
in interface Stage<M,C extends StageConfig>
public MetricRegistry getMetricRegistry()
getMetricRegistry
in interface Stage<M,C extends StageConfig>
public void process(M message, Context context, StageOutput<M> output) throws java.lang.Exception
public void handleSignal(java.lang.String signal, java.lang.String value, Context context)
Processor
handleSignal
in interface Processor<M>