
pl.wrzasq.commons.aws.sns.SimpleNotificationHandler Maven / Gradle / Ivy
/*
* This file is part of the pl.wrzasq.commons.
*
* @license http://mit-license.org/ The MIT license
* @copyright 2017, 2019 © by Rafał Wrzeszcz - Wrzasq.pl.
*/
package pl.wrzasq.commons.aws.sns;
import java.util.function.Consumer;
/**
* SNS notifications handler that simply processes notification body.
*/
public class SimpleNotificationHandler extends NotificationHandler {
/**
* Initializes notification handler.
*
* @param messageBodyHandler SNS message handler
*/
public SimpleNotificationHandler(Consumer messageBodyHandler) {
super(data -> messageBodyHandler.accept(data.getMessage()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy