public class LambdaSnsNotifier.Processor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.tiogasolutions.notify.notifier.builder.NotificationBuilder |
builder |
protected com.amazonaws.services.lambda.runtime.Context |
context |
protected java.lang.String |
defaultTopic |
protected Logger |
logger |
protected org.tiogasolutions.notify.notifier.Notifier |
notifier |
protected com.fasterxml.jackson.databind.ObjectMapper |
om |
protected SnsRecord |
record |
protected java.lang.String |
summary |
protected java.lang.String |
topic |
protected java.util.Map<java.lang.String,java.lang.String> |
traits |
| Constructor and Description |
|---|
Processor(com.fasterxml.jackson.databind.ObjectMapper om,
Logger logger,
org.tiogasolutions.notify.notifier.Notifier notifier,
com.amazonaws.services.lambda.runtime.Context context,
SnsRecord record,
java.lang.String defaultTopic) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildTraitsMap() |
protected void |
decorateNotification() |
protected java.lang.String |
getSummary() |
protected java.lang.String |
getTopic() |
protected void |
processPayload() |
void |
processRecord() |
protected final com.fasterxml.jackson.databind.ObjectMapper om
protected final Logger logger
protected final org.tiogasolutions.notify.notifier.Notifier notifier
protected final org.tiogasolutions.notify.notifier.builder.NotificationBuilder builder
protected final com.amazonaws.services.lambda.runtime.Context context
protected final SnsRecord record
protected final java.lang.String defaultTopic
protected final java.util.Map<java.lang.String,java.lang.String> traits
protected java.lang.String topic
protected java.lang.String summary
public void processRecord()
throws java.lang.Throwable
java.lang.Throwableprotected java.lang.String getSummary()
protected java.lang.String getTopic()
protected void buildTraitsMap()
protected void processPayload()
throws java.lang.Exception
java.lang.Exceptionprotected void decorateNotification()
throws java.lang.Exception
java.lang.Exception