Class InetSocketAddressWrapper
java.lang.Object
net.rubyeye.xmemcached.utils.InetSocketAddressWrapper
InetSocketAddress wrapper,encapsulate an order number.
- Author:
- dennis
-
Constructor Summary
ConstructorsConstructorDescriptionInetSocketAddressWrapper(InetSocketAddress inetSocketAddress, int order, int weight, InetSocketAddress mainNodeAddress) InetSocketAddressWrapper(InetSocketAddress inetSocketAddress, int order, int weight, InetSocketAddress mainNodeAddress, boolean resolve) -
Method Summary
Modifier and TypeMethodDescriptionfinal InetSocketAddressfinal intgetOrder()final InetSocketAddressfinal InetSocketAddressintfinal voidsetOrder(int order) voidsetRemoteAddressStr(String remoteAddressStr) final voidfinal voidvoidsetWeight(int weight)
-
Constructor Details
-
InetSocketAddressWrapper
public InetSocketAddressWrapper(InetSocketAddress inetSocketAddress, int order, int weight, InetSocketAddress mainNodeAddress) -
InetSocketAddressWrapper
public InetSocketAddressWrapper(InetSocketAddress inetSocketAddress, int order, int weight, InetSocketAddress mainNodeAddress, boolean resolve)
-
-
Method Details
-
getRemoteAddressStr
-
setRemoteAddressStr
-
getInetSocketAddress
-
getResolvedSocketAddress
-
setResolvedSocketAddress
-
getResolvedMainNodeSocketAddress
-
setResolvedMainNodeSocketAddress
-
getOrder
public final int getOrder() -
getWeight
public int getWeight() -
setWeight
public void setWeight(int weight) -
getMainNodeAddress
-
setOrder
public final void setOrder(int order)
-