@ChannelHandler.Sharable public class MaintenanceAwareConnectionWatchdog extends ConnectionWatchdog implements PushListener
ConnectionWatchdog that intercepts maintenance events.ClientOptions.getMaintNotificationsConfig()| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<RebindState> |
REBIND_ATTRIBUTE |
reconnectionHandler| Constructor and Description |
|---|
MaintenanceAwareConnectionWatchdog(Delay reconnectDelay,
ClientOptions clientOptions,
io.netty.bootstrap.Bootstrap bootstrap,
io.netty.util.Timer timer,
io.netty.util.concurrent.EventExecutorGroup reconnectWorkers,
Mono<SocketAddress> socketAddressSupplier,
ReconnectionListener reconnectionListener,
ConnectionFacade connectionFacade,
EventBus eventBus,
Endpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
onPushMessage(PushMessage message)
Handle a push message.
|
void |
setMaintenanceEventListener(MaintenanceAwareComponent component)
Register a component that is aware of re-bind events.
|
protected Mono<SocketAddress> |
wrapSocketAddressSupplier(Mono<SocketAddress> socketAddressSupplier) |
channelInactive, isListenOnChannelInactive, isReconnectSuspended, run, scheduleReconnect, setListenOnChannelInactive, setReconnectSuspendedchannelRead, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final io.netty.util.AttributeKey<RebindState> REBIND_ATTRIBUTE
public MaintenanceAwareConnectionWatchdog(Delay reconnectDelay, ClientOptions clientOptions, io.netty.bootstrap.Bootstrap bootstrap, io.netty.util.Timer timer, io.netty.util.concurrent.EventExecutorGroup reconnectWorkers, Mono<SocketAddress> socketAddressSupplier, ReconnectionListener reconnectionListener, ConnectionFacade connectionFacade, EventBus eventBus, Endpoint endpoint)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class ConnectionWatchdogExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected Mono<SocketAddress> wrapSocketAddressSupplier(Mono<SocketAddress> socketAddressSupplier)
wrapSocketAddressSupplier in class ConnectionWatchdogpublic void onPushMessage(PushMessage message)
PushListeneronPushMessage in interface PushListenermessage - message to respond to.public void setMaintenanceEventListener(MaintenanceAwareComponent component)
onRebindStarted and onRebindCompleted methods.component - the component to registerCopyright © 2026 lettuce.io. All rights reserved.