run.halo.app.notification.NotificationReasonEmitter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
API of halo project, connecting by other projects.
The newest version!
package run.halo.app.notification;
import java.util.function.Consumer;
import reactor.core.publisher.Mono;
import run.halo.app.core.extension.notification.Reason;
/**
* {@link NotificationReasonEmitter} to emit notification reason.
*
* @author guqing
* @since 2.10.0
*/
public interface NotificationReasonEmitter {
/**
* Emit a {@link Reason} with {@link ReasonPayload}.
*
* @param reasonType reason type to emitter must not be blank
* @param reasonData reason data must not be null
*/
Mono emit(String reasonType, Consumer reasonData);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy