- java.lang.Object
-
- org.redkale.net.sncp.SncpRpcGroup
-
public class SncpRpcGroup extends Object
协议地址组合对象, 对应application.xml 中 resources->group 节点信息详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Set<InetSocketAddress>
addresses
protected ReentrantLock
lock
protected String
name
protected String
protocol
-
构造器概要
构造器 构造器 说明 SncpRpcGroup()
SncpRpcGroup(String name, String protocol, InetSocketAddress... addrs)
SncpRpcGroup(String name, String protocol, Set<InetSocketAddress> addresses)
SncpRpcGroup(String name, InetSocketAddress... addrs)
SncpRpcGroup(String name, Set<InetSocketAddress> addrs)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
containsAddress(InetSocketAddress addr)
Set<InetSocketAddress>
copyAddresses()
Set<InetSocketAddress>
getAddresses()
String
getName()
String
getProtocol()
void
putAddress(InetSocketAddress addr)
void
putAddress(Set<InetSocketAddress> addrs)
void
removeAddress(InetSocketAddress addr)
void
setAddresses(Set<InetSocketAddress> addresses)
void
setName(String name)
void
setProtocol(String protocol)
String
toString()
-
-
-
字段详细资料
-
lock
protected final ReentrantLock lock
-
name
@ConvertColumn(index=1) protected String name
-
protocol
@ConvertColumn(index=2) protected String protocol
-
addresses
@ConvertColumn(index=3) protected Set<InetSocketAddress> addresses
-
-
构造器详细资料
-
SncpRpcGroup
public SncpRpcGroup()
-
SncpRpcGroup
public SncpRpcGroup(String name, InetSocketAddress... addrs)
-
SncpRpcGroup
public SncpRpcGroup(String name, Set<InetSocketAddress> addrs)
-
SncpRpcGroup
public SncpRpcGroup(String name, String protocol, InetSocketAddress... addrs)
-
SncpRpcGroup
public SncpRpcGroup(String name, String protocol, Set<InetSocketAddress> addresses)
-
-
方法详细资料
-
getName
public String getName()
-
setName
public void setName(String name)
-
getProtocol
public String getProtocol()
-
setProtocol
public void setProtocol(String protocol)
-
getAddresses
public Set<InetSocketAddress> getAddresses()
-
copyAddresses
public Set<InetSocketAddress> copyAddresses()
-
setAddresses
public void setAddresses(Set<InetSocketAddress> addresses)
-
containsAddress
public boolean containsAddress(InetSocketAddress addr)
-
removeAddress
public void removeAddress(InetSocketAddress addr)
-
putAddress
public void putAddress(InetSocketAddress addr)
-
putAddress
public void putAddress(Set<InetSocketAddress> addrs)
-
-