public class CommandLatencyId extends Object implements Serializable, Comparable<CommandLatencyId>
SocketAddresses and a
commandType part.| Modifier | Constructor and Description |
|---|---|
protected |
CommandLatencyId(SocketAddress localAddress,
SocketAddress remoteAddress,
ProtocolKeyword commandType) |
| Modifier and Type | Method and Description |
|---|---|
ProtocolKeyword |
commandType()
Returns the command type.
|
int |
compareTo(CommandLatencyId o) |
static CommandLatencyId |
create(SocketAddress localAddress,
SocketAddress remoteAddress,
ProtocolKeyword commandType)
Create a new instance of
CommandLatencyId. |
boolean |
equals(Object o) |
int |
hashCode() |
SocketAddress |
localAddress()
Returns the local address.
|
SocketAddress |
remoteAddress()
Returns the remote address.
|
String |
toString() |
protected CommandLatencyId(SocketAddress localAddress, SocketAddress remoteAddress, ProtocolKeyword commandType)
public static CommandLatencyId create(SocketAddress localAddress, SocketAddress remoteAddress, ProtocolKeyword commandType)
CommandLatencyId.localAddress - the local addressremoteAddress - the remote addresscommandType - the command typeCommandLatencyIdpublic SocketAddress localAddress()
public SocketAddress remoteAddress()
public ProtocolKeyword commandType()
public int compareTo(CommandLatencyId o)
compareTo in interface Comparable<CommandLatencyId>Copyright © 2019 lettuce.io. All rights reserved.