public class PassThroughSinkMapper extends SinkMapper
SinkMapper representing pass-through scenario where no mapping is done and
Events are send directly to transports.| Constructor and Description |
|---|
PassThroughSinkMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class[] |
getOutputEventClasses()
Get produced event class types
|
String[] |
getSupportedDynamicOptions()
Supported dynamic options by the mapper
|
void |
init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
OptionHolder optionHolder,
Map<String,TemplateBuilder> payloadTemplateBuilderMap,
ConfigReader mapperConfigReader,
SiddhiAppContext siddhiAppContext)
Initialize the mapper and the mapping configurations.
|
void |
mapAndSend(Event[] events,
OptionHolder optionHolder,
Map<String,TemplateBuilder> payloadTemplateBuilderMap,
SinkListener sinkListener)
Called to map the events and send them to
SinkListener for publishing |
void |
mapAndSend(Event event,
OptionHolder optionHolder,
Map<String,TemplateBuilder> payloadTemplateBuilderMap,
SinkListener sinkListener)
Called to map the event and send it to
SinkListener for publishing |
getType, init, setGroupDeterminerpublic String[] getSupportedDynamicOptions()
SinkMappergetSupportedDynamicOptions in class SinkMapperpublic void init(org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition,
OptionHolder optionHolder,
Map<String,TemplateBuilder> payloadTemplateBuilderMap,
ConfigReader mapperConfigReader,
SiddhiAppContext siddhiAppContext)
SinkMapperinit in class SinkMapperstreamDefinition - The stream definitionoptionHolder - Option holder containing static and dynamic options related to the mapperpayloadTemplateBuilderMap - Un mapped payloads for referencemapperConfigReader - System configuration reader for Sink-mapper.siddhiAppContext - Siddhi Application Contextpublic Class[] getOutputEventClasses()
SinkMappergetOutputEventClasses in class SinkMapperpublic void mapAndSend(Event[] events, OptionHolder optionHolder, Map<String,TemplateBuilder> payloadTemplateBuilderMap, SinkListener sinkListener)
SinkMapperSinkListener for publishingmapAndSend in class SinkMapperevents - Events that need to be mappedoptionHolder - Option holder containing static and dynamic options related to the mapperpayloadTemplateBuilderMap - To build the message payloads based on the given templatessinkListener - SinkListener that will be called with the mapped eventspublic void mapAndSend(Event event, OptionHolder optionHolder, Map<String,TemplateBuilder> payloadTemplateBuilderMap, SinkListener sinkListener)
SinkMapperSinkListener for publishingmapAndSend in class SinkMapperevent - Event that need to be mappedoptionHolder - Option holder containing static and dynamic options related to the mapperpayloadTemplateBuilderMap - To build the message payloads based on the given templatessinkListener - SinkListener that will be called with the mapped eventCopyright © 2018 WSO2. All rights reserved.