I
- Email RequestO
- Email Responsepublic interface AsyncTransactionalEmailSender<I,O>
extends io.micronaut.core.naming.Named
Modifier and Type | Method and Description |
---|---|
default org.reactivestreams.Publisher<O> |
sendAsync(@NotNull @Valid Email email)
Sends an email.
|
org.reactivestreams.Publisher<O> |
sendAsync(@NotNull @Valid Email email,
@NotNull java.util.function.Consumer<I> emailRequest)
Sends an email.
|
@NonNull @SingleResult default org.reactivestreams.Publisher<O> sendAsync(@NonNull @NotNull @Valid @NotNull @Valid Email email) throws EmailException
email
- EmailEmailException
- Wrapper of any exception thrown while sending email@NonNull @SingleResult org.reactivestreams.Publisher<O> sendAsync(@NonNull @NotNull @Valid @NotNull @Valid Email email, @NonNull @NotNull @NotNull java.util.function.Consumer<I> emailRequest) throws EmailException
email
- EmailemailRequest
- Email Request ConsumerEmailException
- Wrapper of any exception thrown while sending email