- java.lang.Object
-
- org.redkale.net.Transport.TransportNode
-
-
字段概要
字段 修饰符和类型 字段 说明 protected InetSocketAddress
address
protected ConcurrentHashMap<String,Object>
attributes
protected BlockingQueue<AsyncConnection>
connQueue
protected long
disabletime
protected ArrayBlockingQueue<CompletableFuture<AsyncConnection>>
pollQueue
-
构造器概要
构造器 构造器 说明 TransportNode(int poolMaxConns, InetSocketAddress address)
TransportNode(int poolMaxConns, InetSocketAddress address, long disabletime)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Transport.TransportNode
clearAttributes()
void
dispose()
boolean
equals(Object obj)
InetSocketAddress
getAddress()
<T> T
getAttribute(String name)
ConcurrentHashMap<String,Object>
getAttributes()
BlockingQueue<AsyncConnection>
getConnQueue()
long
getDisabletime()
int
getPoolMaxConns()
int
hashCode()
<T> T
removeAttribute(String name)
<T> T
setAttribute(String name, T value)
void
setAttributes(ConcurrentHashMap<String,Object> map)
String
toString()
-
-
-
字段详细资料
-
address
protected InetSocketAddress address
-
disabletime
protected volatile long disabletime
-
connQueue
protected final BlockingQueue<AsyncConnection> connQueue
-
pollQueue
protected final ArrayBlockingQueue<CompletableFuture<AsyncConnection>> pollQueue
-
attributes
protected final ConcurrentHashMap<String,Object> attributes
-
-
构造器详细资料
-
TransportNode
public TransportNode(int poolMaxConns, InetSocketAddress address)
-
TransportNode
@ConstructorParameters({"poolMaxConns","address","disabletime"}) public TransportNode(int poolMaxConns, InetSocketAddress address, long disabletime)
-
-
方法详细资料
-
getPoolMaxConns
public int getPoolMaxConns()
-
setAttribute
public <T> T setAttribute(String name, T value)
-
getAttribute
public <T> T getAttribute(String name)
-
removeAttribute
public <T> T removeAttribute(String name)
-
clearAttributes
public Transport.TransportNode clearAttributes()
-
getAttributes
public ConcurrentHashMap<String,Object> getAttributes()
-
setAttributes
public void setAttributes(ConcurrentHashMap<String,Object> map)
-
getAddress
public InetSocketAddress getAddress()
-
getDisabletime
public long getDisabletime()
-
getConnQueue
public BlockingQueue<AsyncConnection> getConnQueue()
-
dispose
public void dispose()
-
-