public interface MailClientBuilder
MailClient.| Modifier and Type | Method and Description |
|---|---|
MailClient |
build()
Build and return the client.
|
MailClientBuilder |
shared(String poolName)
Set a shared client pool name.
|
MailClientBuilder |
with(MailConfig configuration)
Set a configuration object.
|
MailClientBuilder |
withCredentialsSupplier(java.util.function.Supplier<Future<UsernamePasswordCredentials>> credentialsSupplier)
Set a credentials supplier for the mail client.
|
MailClientBuilder with(MailConfig configuration)
configuration - to be used for sending mailsMailClientBuilder withCredentialsSupplier(java.util.function.Supplier<Future<UsernamePasswordCredentials>> credentialsSupplier)
By default, the credentials are fixed at creation time with MailConfig.setUsername(String) and MailConfig.setPassword(String).
MailClientBuilder shared(String poolName)
The created client will share its connection pool with any other client created with the same pool name.
poolName - the shared pool nameMailClient build()
Copyright © 2025 Eclipse. All rights reserved.