public static class MaintNotificationsConfig.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MaintNotificationsConfig.Builder |
autoResolveEndpointType()
Configure automatic
MaintNotificationsConfig.EndpointType resolution based on connection characteristics. |
MaintNotificationsConfig |
build() |
MaintNotificationsConfig.Builder |
enableMaintNotifications() |
MaintNotificationsConfig.Builder |
enableMaintNotifications(boolean enabled) |
MaintNotificationsConfig.Builder |
endpointType(MaintNotificationsConfig.EndpointType endpointType)
Configure a fixed endpoint type for all maintenance notifications.
|
public MaintNotificationsConfig.Builder enableMaintNotifications()
public MaintNotificationsConfig.Builder enableMaintNotifications(boolean enabled)
public MaintNotificationsConfig.Builder endpointType(MaintNotificationsConfig.EndpointType endpointType)
Overrides automatic resolution and always requests the specified type.
endpointType - the MaintNotificationsConfig.EndpointType to request from serverMaintNotificationsConfig.EndpointTypepublic MaintNotificationsConfig.Builder autoResolveEndpointType()
MaintNotificationsConfig.EndpointType resolution based on connection characteristics.
Resolution logic:
NetUtils.isPrivateIp(SocketAddress)),
use INTERNAL_*, otherwise EXTERNAL_*Examples:
INTERNAL_IPINTERNAL_FQDNEXTERNAL_IPEXTERNAL_FQDNpublic MaintNotificationsConfig build()
Copyright © 2025 lettuce.io. All rights reserved.