java.lang.Object
io.lettuce.core.event.connection.ConnectionDeactivatedEvent
- All Implemented Interfaces:
ConnectionId,ConnectionEvent,Event
public class ConnectionDeactivatedEvent extends Object
Event for a connection deactivation.
- Since:
- 3.4
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description ConnectionDeactivatedEvent(String redisUri, String epId, String channelId, SocketAddress local, SocketAddress remote)ConnectionDeactivatedEvent(SocketAddress local, SocketAddress remote) -
Method Summary
Modifier and Type Method Description SocketAddresslocalAddress()Returns the local address.SocketAddressremoteAddress()Returns the remote address.StringtoString()
-
Constructor Details
-
ConnectionDeactivatedEvent
public ConnectionDeactivatedEvent(String redisUri, String epId, String channelId, SocketAddress local, SocketAddress remote) -
ConnectionDeactivatedEvent
-
-
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
-