public interface MessageProcessingContext
| Modifier and Type | Method and Description |
|---|---|
default String |
evalExpression(String expression)
Evaluate a ${} expression in the message context, which includes
the message as primary source, then the stream processing context.
|
<T> T |
evalExpression(String expression,
Class<T> targetType,
io.continual.util.data.exprEval.ExprDataSource... addlSrcs)
Evaluate a ${} expression in the message context, which includes the addl srcs,
the message, then the stream processing context, in that order.
|
default String |
evalExpression(String expression,
io.continual.util.data.exprEval.ExprDataSource... addlSrcs)
Evaluate a ${} expression in the message context, which includes the addl srcs,
the message, then the stream processing context, in that order.
|
String |
getId()
Get a unique serial number for the current message
|
Message |
getMessage()
Get the message being processed
|
MetricsCatalog |
getMetrics()
Get a metrics catalog appropriate for the scope of this message's processing
|
Sink |
getSink(String sinkName)
Get a named sink from the program
|
Source |
getSource(String srcName)
Get a named source from the program
|
StreamProcessingContext |
getStreamProcessingContext()
Get the stream processing context associated with the current message.
|
boolean |
shouldContinue()
Should the engine continue to process this message?
|
void |
stopProcessing()
Ask the engine to stop processing this message
|
default void |
stopProcessing(String warningText)
Ask the engine to stop processing this message and log the warning.
|
void |
warn(String warningText)
report a warning about processing
|
StreamProcessingContext getStreamProcessingContext()
String getId()
Message getMessage()
boolean shouldContinue()
void stopProcessing()
default void stopProcessing(String warningText)
warningText - void warn(String warningText)
warningText - Source getSource(String srcName)
srcName - the name of a sourceSink getSink(String sinkName)
sinkName - default String evalExpression(String expression)
expression - default String evalExpression(String expression, io.continual.util.data.exprEval.ExprDataSource... addlSrcs)
expression - <T> T evalExpression(String expression, Class<T> targetType, io.continual.util.data.exprEval.ExprDataSource... addlSrcs)
expression - MetricsCatalog getMetrics()
Copyright © 2022 continual.io. All rights reserved.