Uses of Class
org.miaixz.bus.socket.accord.AioServer
Packages that use AioServer
-
Uses of AioServer in org.miaixz.bus.socket.accord
Methods in org.miaixz.bus.socket.accord that return AioServerModifier and TypeMethodDescriptionAioServer.setBacklog(int backlog) 设置 backlog 大小AioServer.setBufferFactory(BufferFactory bufferFactory) 设置内存池的构造工厂。 通过工厂形式生成的内存池会强绑定到当前AioServer对象, 在AioServer执行shutdown时会释放内存池。 在启用内存池的情况下会有更好的性能表现AioServer.setBufferPagePool(BufferPagePool bufferPool) 设置内存池。 通过该方法设置的内存池,在AioServer执行shutdown时不会触发内存池的释放。 该方法适用于多个AioServer、AioClient共享内存池的场景。 在启用内存池的情况下会有更好的性能表现AioServer.setLowMemory(boolean lowMemory) <V> AioServerAioServer.setOption(SocketOption<V> socketOption, V value) 设置Socket的TCP参数配置。AioServer.setReadBufferFactory(VirtualBufferFactory readBufferFactory) AioServer.setReadBufferSize(int size) 设置读缓存区大小AioServer.setThreadNum(int threadNum) 设置服务工作线程数,设置数值必须大于等于2AioServer.setWriteBuffer(int bufferSize, int bufferCapacity) 设置输出缓冲区容量 -
Uses of AioServer in org.miaixz.bus.socket.plugin
Constructors in org.miaixz.bus.socket.plugin with parameters of type AioServer