public class SNSNotificationsPublisher extends java.lang.Object implements org.springframework.context.ApplicationListener<JobStateChangeEvent>
Constructor and Description |
---|
SNSNotificationsPublisher(com.amazonaws.services.sns.AmazonSNS snsClient,
SNSNotificationsProperties properties,
io.micrometer.core.instrument.MeterRegistry registry,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(JobStateChangeEvent event) |
public SNSNotificationsPublisher(com.amazonaws.services.sns.AmazonSNS snsClient, SNSNotificationsProperties properties, io.micrometer.core.instrument.MeterRegistry registry, com.fasterxml.jackson.databind.ObjectMapper mapper)
snsClient
- Amazon SNS clientproperties
- configuration propertiesregistry
- metrics registrymapper
- object mapperpublic void onApplicationEvent(JobStateChangeEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<JobStateChangeEvent>