Modifier and Type | Method and Description |
---|---|
IClientCfg |
IClient.clientCfg()
获取客户端配置对象
|
Modifier and Type | Method and Description |
---|---|
static <LISTENER extends NioClientListener,CODEC extends INioCodec> |
Servs.createClient(IClientCfg clientCfg,
CODEC codec,
IReconnectService reconnect,
IHeartbeatService<?> heartbeat,
LISTENER listener) |
static <LISTENER extends AbstractNioUdpListener,CODEC extends INioCodec> |
Servs.createUdpClient(IClientCfg clientCfg,
CODEC codec,
IHeartbeatService<?> heartbeat,
LISTENER listener) |
void |
IClient.initialize(IClientCfg clientCfg,
LISTENER listener,
CODEC codec,
IReconnectService reconnectService,
IHeartbeatService<?> heartbeatService)
初始化客户端服务
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultClientCfg |
Modifier and Type | Method and Description |
---|---|
IClientCfg |
DefaultClientCfg.Builder.build() |
Modifier and Type | Method and Description |
---|---|
IClientCfg |
AbstractNioClient.clientCfg() |
Modifier and Type | Method and Description |
---|---|
protected abstract INioEventGroup<LISTENER> |
AbstractNioClient.buildEventGroup(IClientCfg clientCfg,
LISTENER listener,
INioCodec codec)
由子类实现创建多路复用通道事件处理器逻辑
|
void |
AbstractNioClient.initialize(IClientCfg clientCfg,
LISTENER listener,
INioCodec codec,
IReconnectService reconnectService,
IHeartbeatService<?> heartbeatService) |
protected abstract SESSION |
AbstractNioEventGroup.sessionCreate(IClientCfg cfg)
构建会话对象
|
Constructor and Description |
---|
AbstractNioEventGroup(IClientCfg cfg,
LISTENER listener,
CODEC codec) |
Modifier and Type | Method and Description |
---|---|
protected INioEventGroup<NioClientListener> |
NioClient.buildEventGroup(IClientCfg clientCfg,
NioClientListener listener,
INioCodec codec) |
Modifier and Type | Method and Description |
---|---|
protected INioEventGroup<AbstractNioUdpListener> |
NioUdpClient.buildEventGroup(IClientCfg clientCfg,
AbstractNioUdpListener listener,
INioCodec codec) |
protected INioSession |
NioUdpEventGroup.sessionCreate(IClientCfg cfg) |
Constructor and Description |
---|
NioUdpEventGroup(IClientCfg cfg,
AbstractNioUdpListener listener,
INioCodec codec) |
Modifier and Type | Method and Description |
---|---|
protected INioSession |
NioEventGroup.sessionCreate(IClientCfg cfg) |
Constructor and Description |
---|
NioEventGroup(IClientCfg cfg,
LISTENER listener,
INioCodec codec) |
Copyright © 2022. All rights reserved.