Interface MailClientProvider

All Known Implementing Classes:
DefaultMailClientProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MailClientProvider
Provider for dynamically resolving FlowableMailClient instances.

This allows mail client resolution to be dynamic rather than statically configured at engine startup. For example, this can be used to support dynamically added tenants or configuration changes at runtime.

Implementations must be thread-safe, as this provider may be called concurrently from multiple threads.

Author:
Valentin Zickner
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the mail client for the given tenant identifier.
  • Method Details

    • getMailClient

      FlowableMailClient getMailClient(String tenantId)
      Returns the mail client for the given tenant identifier.
      Parameters:
      tenantId - the tenant identifier, or null for the default (non-tenant) case
      Returns:
      the mail client for the given tenant