public interface Endpoint
Endpoint that abstracts the underlying channel. Endpoints may be connected, disconnected and in
closed states. Endpoints may feature reconnection capabilities with replaying queued commands.| Modifier and Type | Method and Description |
|---|---|
void |
initialState()
Reset this endpoint to its initial state, clear all buffers and potentially close the bound channel.
|
void |
notifyChannelActive(Channel channel)
Notify about channel activation.
|
void |
notifyChannelInactive(Channel channel)
Notify about channel deactivation.
|
void |
notifyDrainQueuedCommands(io.lettuce.core.protocol.HasQueuedCommands queuedCommands)
Signal the endpoint to drain queued commands from the queue holder.
|
void |
notifyException(Throwable t)
Notify about an exception occurred in channel/command processing.
|
void |
registerConnectionWatchdog(ConnectionWatchdog connectionWatchdog)
Associate a
ConnectionWatchdog with the Endpoint. |
void initialState()
void notifyChannelActive(Channel channel)
channel - the channel.void notifyChannelInactive(Channel channel)
channel - the channel.void notifyException(Throwable t)
t - the Exception.void notifyDrainQueuedCommands(io.lettuce.core.protocol.HasQueuedCommands queuedCommands)
queuedCommands - the queue holder.void registerConnectionWatchdog(ConnectionWatchdog connectionWatchdog)
ConnectionWatchdog with the Endpoint.connectionWatchdog - the connection watchdog.Copyright © 2020 lettuce.io. All rights reserved.