- java.lang.Object
-
- org.redkale.net.TransportFactory
-
@Deprecated(since="2.8.0") public class TransportFactory extends Object
已过时。被net.client模块代替详情见: https://redkale.org
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected AsyncGroup
asyncGroup
已过时。protected int
checkInterval
已过时。static int
DEFAULT_READTIMEOUTSECONDS
已过时。static int
DEFAULT_WRITETIMEOUTSECONDS
已过时。protected Map<InetSocketAddress,String>
groupAddrs
已过时。protected Map<String,TransportGroupInfo>
groupInfos
已过时。protected static Logger
logger
已过时。static String
NAME_CHECKINTERVAL
已过时。static String
NAME_PINGINTERVAL
已过时。static String
NAME_POOLMAXCONNS
已过时。protected String
netprotocol
已过时。protected int
pinginterval
已过时。protected int
pongLength
已过时。protected int
poolMaxConns
已过时。protected int
readTimeoutSeconds
已过时。protected List<WeakReference<Service>>
services
已过时。protected SSLContext
sslContext
已过时。protected TransportStrategy
strategy
已过时。protected List<WeakReference<Transport>>
transportReferences
已过时。protected int
writeTimeoutSeconds
已过时。
-
构造器概要
构造器 限定符 构造器 说明 protected
TransportFactory(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds)
已过时。protected
TransportFactory(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)
已过时。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 boolean
addGroupInfo(String groupName, InetSocketAddress... addrs)
已过时。TransportFactory
addGroupInfo(String name, Set<InetSocketAddress> addrs)
已过时。boolean
addGroupInfo(TransportGroupInfo info)
已过时。void
addSncpService(Service service)
已过时。static TransportFactory
create(AsyncGroup asyncGroup, int readTimeoutSeconds, int writeTimeoutSeconds)
已过时。static TransportFactory
create(AsyncGroup asyncGroup, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds)
已过时。static TransportFactory
create(AsyncGroup asyncGroup, SSLContext sslContext, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)
已过时。static TransportFactory
create(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)
已过时。Transport
createTransport(String name, String netprotocol, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses)
已过时。Transport
createTransportTCP(String name, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses)
已过时。TransportGroupInfo
findGroupInfo(String group)
已过时。String
findGroupName(InetSocketAddress addr)
已过时。List<TransportGroupInfo>
getGroupInfos()
已过时。Logger
getLogger()
已过时。List<Service>
getServices()
已过时。void
init(AnyValue conf, ByteBuffer pingBuffer, int pongLength)
已过时。Transport
loadTransport(InetSocketAddress sncpAddress, Set<String> groups)
已过时。boolean
removeGroupInfo(String groupName, InetSocketAddress addr)
已过时。void
shutdownNow()
已过时。
-
-
-
字段详细资料
-
DEFAULT_READTIMEOUTSECONDS
@Comment("\u9ed8\u8ba4TCP\u8bfb\u53d6\u8d85\u65f6\u79d2\u6570") public static int DEFAULT_READTIMEOUTSECONDS
已过时。
-
DEFAULT_WRITETIMEOUTSECONDS
@Comment("\u9ed8\u8ba4TCP\u5199\u5165\u8d85\u65f6\u79d2\u6570") public static int DEFAULT_WRITETIMEOUTSECONDS
已过时。
-
logger
protected static final Logger logger
已过时。
-
asyncGroup
protected final AsyncGroup asyncGroup
已过时。
-
groupAddrs
protected final Map<InetSocketAddress,String> groupAddrs
已过时。
-
groupInfos
protected final Map<String,TransportGroupInfo> groupInfos
已过时。
-
services
protected final List<WeakReference<Service>> services
已过时。
-
transportReferences
protected final List<WeakReference<Transport>> transportReferences
已过时。
-
poolMaxConns
protected int poolMaxConns
已过时。
-
checkInterval
protected int checkInterval
已过时。
-
pinginterval
protected int pinginterval
已过时。
-
readTimeoutSeconds
protected int readTimeoutSeconds
已过时。
-
writeTimeoutSeconds
protected int writeTimeoutSeconds
已过时。
-
sslContext
protected SSLContext sslContext
已过时。
-
pongLength
protected int pongLength
已过时。
-
netprotocol
protected String netprotocol
已过时。
-
strategy
protected final TransportStrategy strategy
已过时。
-
-
构造器详细资料
-
TransportFactory
protected TransportFactory(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)
已过时。
-
TransportFactory
protected TransportFactory(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds)
已过时。
-
-
方法详细资料
-
init
public void init(AnyValue conf, ByteBuffer pingBuffer, int pongLength)
已过时。
-
create
public static TransportFactory create(AsyncGroup asyncGroup, int readTimeoutSeconds, int writeTimeoutSeconds)
已过时。
-
create
public static TransportFactory create(AsyncGroup asyncGroup, SSLContext sslContext, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)
已过时。
-
create
public static TransportFactory create(AsyncGroup asyncGroup, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds)
已过时。
-
create
public static TransportFactory create(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)
已过时。
-
createTransportTCP
public Transport createTransportTCP(String name, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses)
已过时。
-
createTransport
public Transport createTransport(String name, String netprotocol, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses)
已过时。
-
findGroupName
public String findGroupName(InetSocketAddress addr)
已过时。
-
findGroupInfo
public TransportGroupInfo findGroupInfo(String group)
已过时。
-
addGroupInfo
public boolean addGroupInfo(String groupName, InetSocketAddress... addrs)
已过时。
-
removeGroupInfo
public boolean removeGroupInfo(String groupName, InetSocketAddress addr)
已过时。
-
addGroupInfo
public TransportFactory addGroupInfo(String name, Set<InetSocketAddress> addrs)
已过时。
-
addGroupInfo
public boolean addGroupInfo(TransportGroupInfo info)
已过时。
-
loadTransport
public Transport loadTransport(InetSocketAddress sncpAddress, Set<String> groups)
已过时。
-
getGroupInfos
public List<TransportGroupInfo> getGroupInfos()
已过时。
-
getLogger
public Logger getLogger()
已过时。
-
addSncpService
public void addSncpService(Service service)
已过时。
-
shutdownNow
public void shutdownNow()
已过时。
-
-