- java.lang.Object
-
- org.redkale.net.Transport
-
@Deprecated(since="2.8.0") public final class Transport extends Object
已过时。被net.client模块代替详情见: https://redkale.org
- 作者:
- zhangjx
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
Transport.TransportNode
已过时。
-
字段概要
字段 修饰符和类型 字段 说明 protected AsyncGroup
asyncGroup
已过时。protected InetSocketAddress
clientAddress
已过时。static String
DEFAULT_NETPROTOCOL
已过时。protected TransportFactory
factory
已过时。protected ReentrantLock
lock
已过时。protected String
name
已过时。protected String
netprotocol
已过时。protected Semaphore
semaphore
已过时。protected AtomicInteger
seq
已过时。protected SSLContext
sslContext
已过时。protected TransportStrategy
strategy
已过时。protected boolean
tcp
已过时。protected Transport.TransportNode[]
transportNodes
已过时。
-
构造器概要
构造器 限定符 构造器 说明 protected
Transport(String name, String netprotocol, TransportFactory factory, AsyncGroup asyncGroup, SSLContext sslContext, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses, TransportStrategy strategy)
已过时。protected
Transport(String name, TransportFactory factory, AsyncGroup asyncGroup, SSLContext sslContext, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses, TransportStrategy strategy)
已过时。
-
方法概要
-
-
-
字段详细资料
-
seq
protected final AtomicInteger seq
已过时。
-
lock
protected final ReentrantLock lock
已过时。
-
factory
protected final TransportFactory factory
已过时。
-
name
protected final String name
已过时。
-
tcp
protected final boolean tcp
已过时。
-
netprotocol
protected final String netprotocol
已过时。
-
asyncGroup
protected final AsyncGroup asyncGroup
已过时。
-
clientAddress
protected final InetSocketAddress clientAddress
已过时。
-
transportNodes
protected Transport.TransportNode[] transportNodes
已过时。
-
sslContext
protected final SSLContext sslContext
已过时。
-
strategy
protected final TransportStrategy strategy
已过时。
-
semaphore
protected Semaphore semaphore
已过时。
-
-
构造器详细资料
-
Transport
protected Transport(String name, TransportFactory factory, AsyncGroup asyncGroup, SSLContext sslContext, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses, TransportStrategy strategy)
已过时。
-
Transport
protected Transport(String name, String netprotocol, TransportFactory factory, AsyncGroup asyncGroup, SSLContext sslContext, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses, TransportStrategy strategy)
已过时。
-
-
方法详细资料
-
getSemaphore
public Semaphore getSemaphore()
已过时。
-
setSemaphore
public void setSemaphore(Semaphore semaphore)
已过时。
-
updateRemoteAddresses
public final InetSocketAddress[] updateRemoteAddresses(Collection<InetSocketAddress> addresses)
已过时。
-
addRemoteAddresses
public final boolean addRemoteAddresses(InetSocketAddress addr)
已过时。
-
removeRemoteAddresses
public final boolean removeRemoteAddresses(InetSocketAddress addr)
已过时。
-
getName
public String getName()
已过时。
-
close
public void close()
已过时。
-
getClientAddress
public InetSocketAddress getClientAddress()
已过时。
-
getTransportNodes
public Transport.TransportNode[] getTransportNodes()
已过时。
-
findTransportNode
public Transport.TransportNode findTransportNode(SocketAddress addr)
已过时。
-
getRemoteAddresses
public InetSocketAddress[] getRemoteAddresses()
已过时。
-
getNetprotocol
public String getNetprotocol()
已过时。
-
isTCP
public boolean isTCP()
已过时。
-
pollAsync
protected CompletableFuture<AsyncConnection> pollAsync(Transport.TransportNode node, SocketAddress addr, Supplier<CompletableFuture<AsyncConnection>> func)
已过时。
-
pollConnection
public CompletableFuture<AsyncConnection> pollConnection(SocketAddress addr0)
已过时。
-
offerConnection
public void offerConnection(boolean forceClose, AsyncConnection conn)
已过时。
-
async
public <A> void async(SocketAddress addr, ByteBuffer buffer, A att, CompletionHandler<Integer,A> handler)
已过时。
-
-