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