public class InetSocketAddressWrapper extends Object
Constructor and Description |
---|
InetSocketAddressWrapper(InetSocketAddress inetSocketAddress,
int order,
int weight,
InetSocketAddress mainNodeAddress) |
InetSocketAddressWrapper(InetSocketAddress inetSocketAddress,
int order,
int weight,
InetSocketAddress mainNodeAddress,
boolean resolve) |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getInetSocketAddress() |
InetSocketAddress |
getMainNodeAddress() |
int |
getOrder() |
String |
getRemoteAddressStr() |
InetSocketAddress |
getResolvedMainNodeSocketAddress() |
InetSocketAddress |
getResolvedSocketAddress() |
int |
getWeight() |
void |
setOrder(int order) |
void |
setRemoteAddressStr(String remoteAddressStr) |
void |
setResolvedMainNodeSocketAddress(InetSocketAddress addr) |
void |
setResolvedSocketAddress(InetSocketAddress addr) |
void |
setWeight(int weight) |
public InetSocketAddressWrapper(InetSocketAddress inetSocketAddress, int order, int weight, InetSocketAddress mainNodeAddress)
public InetSocketAddressWrapper(InetSocketAddress inetSocketAddress, int order, int weight, InetSocketAddress mainNodeAddress, boolean resolve)
public String getRemoteAddressStr()
public void setRemoteAddressStr(String remoteAddressStr)
public final InetSocketAddress getInetSocketAddress()
public final InetSocketAddress getResolvedSocketAddress()
public final void setResolvedSocketAddress(InetSocketAddress addr)
public final InetSocketAddress getResolvedMainNodeSocketAddress()
public final void setResolvedMainNodeSocketAddress(InetSocketAddress addr)
public final int getOrder()
public int getWeight()
public void setWeight(int weight)
public InetSocketAddress getMainNodeAddress()
public final void setOrder(int order)
Copyright © 2021. All rights reserved.