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