M
- public class RuntimeStage<M> extends java.lang.Object implements Stage<M,StageConfig>, Lifecycle, StageOutput<M>
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeStage.ThrowableAndMessage<M> |
Constructor and Description |
---|
RuntimeStage(Stage<M,C> delegate,
C delegateConfig,
<any> next,
MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateConditionalScript(M message,
Context context) |
StageConfig |
getConfiguration() |
ContextFactory |
getContextFactory() |
Stage<M,? extends StageConfig> |
getDelegate() |
StageConfig |
getDelegateConfig() |
java.lang.String |
getId() |
int |
getInflightMessageCount() |
java.lang.Class<M> |
getMessageClass() |
MetricRegistry |
getMetricRegistry() |
<any> |
getNext() |
java.util.Collection<RuntimeStage.ThrowableAndMessage<M>> |
getRecentErrors() |
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> unused)
Determine if the current stage should run, and if so run it
Also collect some metrics and handle errors
|
void |
send(M message,
Context context)
Send a message to the next stage in the pipeline, if set
|
void |
start() |
void |
stop() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStageConfigClass
public Stage<M,? extends StageConfig> getDelegate()
public StageConfig getDelegateConfig()
public <any> getNext()
public void process(M message, Context context, StageOutput<M> unused)
public void send(M message, Context context)
send
in interface StageOutput<M>
message
- context
- public void handleSignal(java.lang.String signal, java.lang.String value, Context context)
Processor
handleSignal
in interface Processor<M>
public ContextFactory getContextFactory()
getContextFactory
in interface Stage<M,StageConfig>
public java.lang.String getId()
getId
in interface Stage<M,StageConfig>
public java.lang.Class<M> getMessageClass()
getMessageClass
in interface Stage<M,StageConfig>
public MetricRegistry getMetricRegistry()
getMetricRegistry
in interface Stage<M,StageConfig>
public StageConfig getConfiguration()
getConfiguration
in interface Configurable<StageConfig>
public void init()
init
in interface Configurable<StageConfig>
public int getInflightMessageCount()
public java.util.Collection<RuntimeStage.ThrowableAndMessage<M>> getRecentErrors()