- java.lang.Object
-
- org.redkale.net.client.WeightAddress
-
- 所有已实现的接口:
Serializable
,Comparable<WeightAddress>
public class WeightAddress extends Object implements Comparable<WeightAddress>, Serializable
带权重的地址详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 WeightAddress(SocketAddress address, int weight)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 int
compareTo(WeightAddress o)
static SocketAddress[]
createAddressArray(List<WeightAddress> ws)
SocketAddress
getAddress()
int
getWeight()
String
toString()
-
-
-
构造器详细资料
-
WeightAddress
@ConstructorParameters({"address","weight"}) public WeightAddress(SocketAddress address, int weight)
-
-
方法详细资料
-
createAddressArray
public static SocketAddress[] createAddressArray(List<WeightAddress> ws)
-
compareTo
public int compareTo(WeightAddress o)
- 指定者:
compareTo
在接口中Comparable<WeightAddress>
-
getAddress
public SocketAddress getAddress()
-
getWeight
public int getWeight()
-
-