@NotThreadSafe public static final class SmtpSessionFactoryConfig.Builder extends Object
SmtpSessionFactoryConfig.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
SmtpSessionFactoryConfig.Builder |
allocator(io.netty.buffer.ByteBufAllocator allocator)
Initializes the value for the
allocator attribute. |
SmtpSessionFactoryConfig |
build()
Builds a new
SmtpSessionFactoryConfig. |
SmtpSessionFactoryConfig.Builder |
channelClass(Class<? extends io.netty.channel.Channel> channelClass)
Initializes the value for the
channelClass attribute. |
SmtpSessionFactoryConfig.Builder |
eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Initializes the value for the
eventLoopGroup attribute. |
SmtpSessionFactoryConfig.Builder |
executor(Executor executor)
Initializes the value for the
executor attribute. |
SmtpSessionFactoryConfig.Builder |
from(SmtpSessionFactoryConfig instance)
Fill a builder with attribute values from the provided
SmtpSessionFactoryConfig instance. |
SmtpSessionFactoryConfig.Builder |
sslEngineSupplier(Supplier<SSLEngine> sslEngineSupplier)
Initializes the value for the
sslEngineSupplier attribute. |
public final SmtpSessionFactoryConfig.Builder from(SmtpSessionFactoryConfig instance)
SmtpSessionFactoryConfig instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SmtpSessionFactoryConfig.Builder executor(Executor executor)
executor attribute.executor - The value for executorthis builder for use in a chained invocationpublic final SmtpSessionFactoryConfig.Builder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
eventLoopGroup attribute.eventLoopGroup - The value for eventLoopGroupthis builder for use in a chained invocationpublic final SmtpSessionFactoryConfig.Builder allocator(io.netty.buffer.ByteBufAllocator allocator)
allocator attribute.
If not set, this attribute will have a default value as returned by the initializer of allocator.
allocator - The value for allocatorthis builder for use in a chained invocationpublic final SmtpSessionFactoryConfig.Builder sslEngineSupplier(Supplier<SSLEngine> sslEngineSupplier)
sslEngineSupplier attribute.
If not set, this attribute will have a default value as returned by the initializer of sslEngineSupplier.
sslEngineSupplier - The value for sslEngineSupplierthis builder for use in a chained invocationpublic final SmtpSessionFactoryConfig.Builder channelClass(Class<? extends io.netty.channel.Channel> channelClass)
channelClass attribute.
If not set, this attribute will have a default value as returned by the initializer of channelClass.
channelClass - The value for channelClassthis builder for use in a chained invocationpublic SmtpSessionFactoryConfig build()
SmtpSessionFactoryConfig.IllegalStateException - if any required attributes are missingCopyright © 2018. All rights reserved.