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.
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 TypeMethodDescriptiongetMailClient(String tenantId) Returns the mail client for the given tenant identifier.
-
Method Details
-
getMailClient
Returns the mail client for the given tenant identifier.- Parameters:
tenantId- the tenant identifier, ornullfor the default (non-tenant) case- Returns:
- the mail client for the given tenant
-