Interface IdServerMailServiceType

All Superinterfaces:
AutoCloseable, com.io7m.repetoir.core.RPServiceType
All Known Implementing Classes:
IdServerMailService

public interface IdServerMailServiceType extends com.io7m.repetoir.core.RPServiceType, AutoCloseable
A mail service.
  • Method Summary

    Modifier and Type
    Method
    Description
    sendMail(io.opentelemetry.api.trace.Span parentSpan, UUID requestId, IdEmail to, Map<String,String> headers, String subject, String text)
    Send a message to the given target address.

    Methods inherited from interface java.lang.AutoCloseable

    close

    Methods inherited from interface com.io7m.repetoir.core.RPServiceType

    description
  • Method Details

    • sendMail

      CompletableFuture<Void> sendMail(io.opentelemetry.api.trace.Span parentSpan, UUID requestId, IdEmail to, Map<String,String> headers, String subject, String text)
      Send a message to the given target address.
      Parameters:
      parentSpan - The parent span for metrics
      requestId - The request ID
      to - The target address
      headers - Extra message headers
      subject - The message subject
      text - The message text
      Returns:
      The send in progress