- java.lang.Object
-
- org.redkale.net.TransportFactory
-
@Deprecated(since="2.8.0") public class TransportFactory extends Object
已过时。被net.client模块代替详情见: https://redkale.org
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected AsyncGroupasyncGroup已过时。protected intcheckInterval已过时。static intDEFAULT_READTIMEOUTSECONDS已过时。static intDEFAULT_WRITETIMEOUTSECONDS已过时。protected Map<InetSocketAddress,String>groupAddrs已过时。protected Map<String,TransportGroupInfo>groupInfos已过时。protected static Loggerlogger已过时。static StringNAME_CHECKINTERVAL已过时。static StringNAME_PINGINTERVAL已过时。static StringNAME_POOLMAXCONNS已过时。protected Stringnetprotocol已过时。protected intpinginterval已过时。protected intpongLength已过时。protected intpoolMaxConns已过时。protected intreadTimeoutSeconds已过时。protected List<WeakReference<Service>>services已过时。protected SSLContextsslContext已过时。protected TransportStrategystrategy已过时。protected List<WeakReference<Transport>>transportReferences已过时。protected intwriteTimeoutSeconds已过时。
-
构造器概要
构造器 限定符 构造器 说明 protectedTransportFactory(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds)已过时。protectedTransportFactory(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)已过时。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 booleanaddGroupInfo(String groupName, InetSocketAddress... addrs)已过时。TransportFactoryaddGroupInfo(String name, Set<InetSocketAddress> addrs)已过时。booleanaddGroupInfo(TransportGroupInfo info)已过时。voidaddSncpService(Service service)已过时。static TransportFactorycreate(AsyncGroup asyncGroup, int readTimeoutSeconds, int writeTimeoutSeconds)已过时。static TransportFactorycreate(AsyncGroup asyncGroup, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds)已过时。static TransportFactorycreate(AsyncGroup asyncGroup, SSLContext sslContext, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)已过时。static TransportFactorycreate(AsyncGroup asyncGroup, SSLContext sslContext, String netprotocol, int readTimeoutSeconds, int writeTimeoutSeconds, TransportStrategy strategy)已过时。TransportcreateTransport(String name, String netprotocol, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses)已过时。TransportcreateTransportTCP(String name, InetSocketAddress clientAddress, Collection<InetSocketAddress> addresses)已过时。TransportGroupInfofindGroupInfo(String group)已过时。StringfindGroupName(InetSocketAddress addr)已过时。List<TransportGroupInfo>getGroupInfos()已过时。LoggergetLogger()已过时。List<Service>getServices()已过时。voidinit(AnyValue conf, ByteBuffer pingBuffer, int pongLength)已过时。TransportloadTransport(InetSocketAddress sncpAddress, Set<String> groups)已过时。booleanremoveGroupInfo(String groupName, InetSocketAddress addr)已过时。voidshutdownNow()已过时。
-
-
-
字段详细资料
-
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()
已过时。
-
-