netty 常用类 5.0.0.Alpha1
来源:互联网 发布:js中substring源码 编辑:程序博客网 时间:2024/04/30 13:27
5.0版本较之前有很大改动,如java文件的包名等。
bootstrap
io.netty.bootstrap.ServerBootstrap
服务端通道,ServerChannel,的导引。
Bootstrap sub-class which allows easy bootstrap of ServerChannel
channel
io.netty.channel.ChannelFuture通道,Channel,异步IO操作的结果。
The result of an asynchronous Channel I/O operation.
io.netty.channel.ChannelInitializer
一个特殊的通道处理器,一旦一个Channel被注册到了它的EventLoop,ChannelInitializer用于初始化Channel。
A special ChannelHandler which offers an easy way to initialize a Channel once it was registered to its EventLoop.
Open Declaration io.netty.channel.ChannelOption
用于配置一个通道配置,ChannelConfig。
A ChannelOption allows to configure a ChannelConfig in a type-safe way.
io.netty.channel.socket.SocketChannel
TCP 套接字的Channel。
A TCP/IP socket Channel.
io.netty.channel.EventLoopGroup
EventExecutorGroup的具体类。允许在时间循环中注册选择器。
Special EventExecutorGroup which allows to register Channel's that get processed for later selection during the event loop.
ChannelPipeline io.netty.channel.Channel.pipeline()
返回已分配的管道,ChannelPipeline。
Return the assigned ChannelPipeline
ChannelPipeline io.netty.channel.ChannelPipeline.addLast(ChannelHandler... handlers)
在管道末尾插入一个通道处理器,ChannelHandler。
Inserts a ChannelHandlers at the last position of this pipeline.
io.netty.channel.ChannelHandler
通道处理器,用于处理一个IO事件或者拦截一个IO操作。
Handles an I/O event or intercepts an I/O operation, and forwards it to its next handler in its ChannelPipeline.
io.netty.channel.ChannelHandlerAdapter
一个通道处理器,ChannelHandler,的实现。
Skelton implementation of a ChannelHandler.
channel.ChannelHandlerContext
ChannelFuture io.netty.channel.ChannelHandlerContext.write(Object msg)通过对应的 管道,ChannelPipeline,写消息。此方法不会进行冲洗,flush,所以你需要自己调用。
Request to write a message via this ChannelHandlerContext through the ChannelPipeline. This method will not request to actual flush, so be sure to call flush() once you want to request to flush all pending data to the actual transport.
buffer
io.netty.buffer.Unpooled
通过申请新的内存来创建一个新的字节缓冲。
Creates a new ByteBuf by allocating new space or by wrapping or copying existing byte arrays, byte buffers and a string.
ByteBuf io.netty.buffer.Unpooled.copiedBuffer(byte[] array)
返回一个新的字节缓冲,内容是指定的array参数。
Creates a new big-endian buffer whose content is a copy of the specified array. The new buffer's readerIndex and writerIndex are 0 and array.length respectively.
通过申请新的内存来创建一个新的字节缓冲。
Creates a new ByteBuf by allocating new space or by wrapping or copying existing byte arrays, byte buffers and a string.
ByteBuf io.netty.buffer.Unpooled.copiedBuffer(byte[] array)
返回一个新的字节缓冲,内容是指定的array参数。
Creates a new big-endian buffer whose content is a copy of the specified array. The new buffer's readerIndex and writerIndex are 0 and array.length respectively.
1 0
- netty 常用类 5.0.0.Alpha1
- NHibernate 3.0.0.Alpha1版本
- Arquillian Cube Extension 1.0.0.Alpha1 发布
- netty常用数据结构备忘
- activiti5.0.alpha1之流程引擎建立入口
- activiti5.0.alpha1之配置文件的结构及功能解析
- JsMenuBar Alpha1版发布
- QQ 蜂鸟 Alpha1 使用指南
- Netty常见类
- netty类图分析
- [netty]--核心源码类
- Netty主要类关系
- Netty
- Netty
- Netty
- Netty
- Netty
- Netty
- lua简介
- CSS 定位(position 与 z-index)
- vmware客户端下载地址
- 字符变换
- Struts2工作原理模拟
- netty 常用类 5.0.0.Alpha1
- unity3d简介
- 数据结构复习——第一章:绪论
- c keyword restrict
- Linux系统下的两个网络扫描工具
- 使用netns虚拟网络进行网络测试 *********************
- cocos2d简介
- 猜字符游戏
- Oracle 内置数据类型 -- 大对象