java.lang.Object
io.lettuce.core.event.connection.DisconnectedEvent
- All Implemented Interfaces:
ConnectionId,ConnectionEvent,Event
public class DisconnectedEvent extends Object
Event for a disconnect on TCP-level.
- Since:
- 3.4
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description DisconnectedEvent(String redisUri, String epId, String channelId, SocketAddress local, SocketAddress remote)DisconnectedEvent(SocketAddress local, SocketAddress remote) -
Method Summary
Modifier and Type Method Description SocketAddresslocalAddress()Returns the local address.SocketAddressremoteAddress()Returns the remote address.StringtoString()
-
Constructor Details
-
DisconnectedEvent
public DisconnectedEvent(String redisUri, String epId, String channelId, SocketAddress local, SocketAddress remote) -
DisconnectedEvent
-
-
Method Details
-
localAddress
Returns the local address.- Specified by:
localAddressin interfaceConnectionId- Returns:
- the local address
-
remoteAddress
Returns the remote address.- Specified by:
remoteAddressin interfaceConnectionId- Returns:
- the remote address
-
toString
-