A B C D E F G I M N O P R S T V W
A
- afterRead(AioSession, int) - 接口 中的方法org.smartboot.socket.NetMonitor
-
监控触发本次读回调Session的已读数据字节数
- afterWrite(AioSession, int) - 接口 中的方法org.smartboot.socket.NetMonitor
-
监控触发本次写回调session的已写数据字节数
- AioQuickClient - org.smartboot.socket.transport中的类
-
AIO实现的客户端服务。
- AioQuickClient(String, int, Protocol<T>, MessageProcessor<T>) - 类 的构造器org.smartboot.socket.transport.AioQuickClient
-
当前构造方法设置了启动Aio客户端的必要参数,基本实现开箱即用。
- AioQuickServer - org.smartboot.socket.transport中的类
-
AIO服务端。
- AioQuickServer(int, Protocol<T>, MessageProcessor<T>) - 类 的构造器org.smartboot.socket.transport.AioQuickServer
-
设置服务端启动必要参数配置
- AioQuickServer(String, int, Protocol<T>, MessageProcessor<T>) - 类 的构造器org.smartboot.socket.transport.AioQuickServer
-
- AioSession - org.smartboot.socket.transport中的类
-
- AioSession() - 类 的构造器org.smartboot.socket.transport.AioSession
-
- allocate(int) - 类 中的方法org.smartboot.socket.buffer.BufferPage
-
申请虚拟内存
- allocateBufferPage() - 类 中的方法org.smartboot.socket.buffer.BufferPagePool
-
申请内存页
- awaitRead() - 类 中的方法org.smartboot.socket.transport.AioSession
-
B
- beforeRead(AioSession) - 接口 中的方法org.smartboot.socket.NetMonitor
-
即将开始读取数据
- beforeWrite(AioSession) - 接口 中的方法org.smartboot.socket.NetMonitor
-
即将开始写数据
- bindLocal(String, int) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
绑定本机地址、端口用于连接远程服务
- buffer() - 类 中的方法org.smartboot.socket.buffer.VirtualBuffer
-
获取真实缓冲区
- BufferFactory - org.smartboot.socket.buffer中的接口
-
内存池工厂
- BufferPage - org.smartboot.socket.buffer中的类
-
ByteBuffer内存页
- BufferPagePool - org.smartboot.socket.buffer中的类
-
ByteBuffer内存池
- BufferPagePool(int, int, boolean) - 类 的构造器org.smartboot.socket.buffer.BufferPagePool
-
C
- cancel(boolean) - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- clean() - 类 中的方法org.smartboot.socket.buffer.VirtualBuffer
-
释放虚拟缓冲区
- close() - 类 中的方法org.smartboot.socket.transport.AioSession
-
强制关闭当前AIOSession。
- close(boolean) - 类 中的方法org.smartboot.socket.transport.AioSession
-
是否立即关闭会话
- close() - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
- completed(V, A) - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- connectTimeout(int) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
客户端连接超时时间,单位:毫秒
- create() - 接口 中的方法org.smartboot.socket.buffer.BufferFactory
-
创建内存池
D
- decode(ByteBuffer, AioSession) - 接口 中的方法org.smartboot.socket.Protocol
-
对于从Socket流中获取到的数据采用当前Protocol的实现类协议进行解析。
- DecoderException - org.smartboot.socket中的异常错误
-
- DecoderException(String) - 异常错误 的构造器org.smartboot.socket.DecoderException
-
- DecoderException(String, Throwable) - 异常错误 的构造器org.smartboot.socket.DecoderException
-
- DecoderException(Throwable) - 异常错误 的构造器org.smartboot.socket.DecoderException
-
- DISABLED_BUFFER_FACTORY - 接口 中的静态变量org.smartboot.socket.buffer.BufferFactory
-
禁用状态的内存池
E
- EnhanceAsynchronousChannelProvider - org.smartboot.socket.enhance中的类
-
- EnhanceAsynchronousChannelProvider(boolean) - 类 的构造器org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
F
- failed(Throwable, A) - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- flush() - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
- FutureCompletionHandler<V,A> - org.smartboot.socket.enhance中的类
-
- FutureCompletionHandler() - 类 的构造器org.smartboot.socket.enhance.FutureCompletionHandler
-
G
- get() - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- get(long, TimeUnit) - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- getAttachment() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取附件对象
- getCapacity() - 类 中的方法org.smartboot.socket.buffer.VirtualBuffer
-
- getInputStream() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获得数据输入流对象。
- getInputStream(int) - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取已知长度的InputStream
- getLocalAddress() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取当前会话的本地连接地址
- getRemoteAddress() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取当前会话的远程连接地址
- getSession() - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
- getSessionID() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取当前Session的唯一标识
I
- isCancelled() - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- isDone() - 类 中的方法org.smartboot.socket.enhance.FutureCompletionHandler
-
- isInvalid() - 类 中的方法org.smartboot.socket.transport.AioSession
-
当前会话是否已失效
M
- MessageProcessor<T> - org.smartboot.socket中的接口
-
消息处理器。
N
- NetMonitor - org.smartboot.socket中的接口
-
网络监控器,提供通讯层面监控功能的接口。
- newBuffer(BufferPage) - 接口 中的方法org.smartboot.socket.VirtualBufferFactory
-
- newThread(Runnable, String) - 类 中的方法org.smartboot.socket.buffer.BufferPagePool
-
申请FastBufferThread的线程对象,配合线程池申请会有更好的性能表现
O
- openAsynchronousChannelGroup(int, ThreadFactory) - 类 中的方法org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
- openAsynchronousChannelGroup(ExecutorService, int) - 类 中的方法org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
- openAsynchronousServerSocketChannel(AsynchronousChannelGroup) - 类 中的方法org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
- openAsynchronousSocketChannel(AsynchronousChannelGroup) - 类 中的方法org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
- org.smartboot.socket - 程序包 org.smartboot.socket
-
定义用户进行通信开发所需实现的接口。
- org.smartboot.socket.buffer - 程序包 org.smartboot.socket.buffer
-
- org.smartboot.socket.enhance - 程序包 org.smartboot.socket.enhance
-
- org.smartboot.socket.transport - 程序包 org.smartboot.socket.transport
-
提供AIO通信服务的具体实现。
P
- process(AioSession, T) - 接口 中的方法org.smartboot.socket.MessageProcessor
-
处理接收到的消息
- Protocol<T> - org.smartboot.socket中的接口
-
消息传输采用的协议。
R
- READ_MONITOR_SIGNAL - 类 中的静态变量org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
读监听信号
- READABLE_SIGNAL - 类 中的静态变量org.smartboot.socket.enhance.EnhanceAsynchronousChannelProvider
-
可读信号
- readBuffer() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取读缓冲区对象
- release() - 类 中的方法org.smartboot.socket.buffer.BufferPagePool
-
释放回收内存
S
- setAttachment(A) - 类 中的方法org.smartboot.socket.transport.AioSession
-
存放附件,支持任意类型
- setBacklog(int) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置 backlog 大小
- setBannerEnabled(boolean) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
是否启用控制台Banner打印
- setBufferFactory(BufferFactory) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
设置内存池的构造工厂。
- setBufferFactory(BufferFactory) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置内存池的构造工厂。
- setBufferPagePool(BufferPagePool) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
设置内存池。
- setBufferPagePool(BufferPagePool) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置内存池。
- setLowMemory(boolean) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
- setOption(SocketOption<V>, V) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
设置Socket的TCP参数配置
AIO客户端的有效可选范围为:
1.
- setOption(SocketOption<V>, V) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置Socket的TCP参数配置。
- setReadBufferFactory(VirtualBufferFactory) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
- setReadBufferFactory(VirtualBufferFactory) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
- setReadBufferSize(int) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
设置读缓存区大小
- setReadBufferSize(int) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置读缓存区大小
- setThreadNum(int) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置服务工作线程数,设置数值必须大于等于2
- setWriteBuffer(int, int) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
设置输出缓冲区容量
- setWriteBuffer(int, int) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
设置输出缓冲区容量
- shouldAccept(AsynchronousSocketChannel) - 接口 中的方法org.smartboot.socket.NetMonitor
-
监控已接收到的连接
- shutdown() - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
停止客户端服务.
- shutdown() - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
停止服务端
- shutdownNow() - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
立即关闭客户端
- signalRead() - 类 中的方法org.smartboot.socket.transport.AioSession
-
继续触发读行为,该方法仅可在异步处理模式下可使用,否则会触发不可预知的异常
- start(A, CompletionHandler<AioSession, ? super A>) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
采用异步的方式启动客户端
- start(AsynchronousChannelGroup, A, CompletionHandler<AioSession, ? super A>) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
采用异步的方式启动客户端
- start(AsynchronousChannelGroup) - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
启动客户端。
- start() - 类 中的方法org.smartboot.socket.transport.AioQuickClient
-
启动客户端。
- start() - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
启动Server端的AIO服务
- start(AsynchronousChannelGroup) - 类 中的方法org.smartboot.socket.transport.AioQuickServer
-
内部启动逻辑
- stateEvent(AioSession, StateMachineEnum, Throwable) - 接口 中的方法org.smartboot.socket.MessageProcessor
-
状态机事件,当枚举事件发生时由框架触发该方法
- StateMachineEnum - org.smartboot.socket中的枚举
-
列举了当前smart-socket所关注的各类状态枚举。
T
- toString() - 类 中的方法org.smartboot.socket.buffer.BufferPage
-
- toString() - 类 中的方法org.smartboot.socket.buffer.VirtualBuffer
-
V
- valueOf(String) - 枚举 中的静态方法org.smartboot.socket.StateMachineEnum
-
返回带有指定名称的该类型的枚举常量。
- values() - 枚举 中的静态方法org.smartboot.socket.StateMachineEnum
-
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
- VirtualBuffer - org.smartboot.socket.buffer中的类
-
虚拟ByteBuffer缓冲区
- VirtualBufferFactory - org.smartboot.socket中的接口
-
W
- wrap(ByteBuffer) - 类 中的静态方法org.smartboot.socket.buffer.VirtualBuffer
-
- write(int) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
已过时。
- write(byte[], int, int) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
- write(ByteBuffer) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
- write(VirtualBuffer) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
- writeBuffer() - 类 中的方法org.smartboot.socket.transport.AioSession
-
获取WriteBuffer用以数据输出
- WriteBuffer - org.smartboot.socket.transport中的类
-
包装当前会话分配到的虚拟Buffer,提供流式操作方式
- writeByte(byte) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
- writeInt(int) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
输出int数值,占用4个字节
- writeLong(long) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
输出long数值,占用8个字节
- writeShort(short) - 类 中的方法org.smartboot.socket.transport.WriteBuffer
-
输出一个short类型的数据
A B C D E F G I M N O P R S T V W
Copyright © 2023. All rights reserved.