软件包 | 描述 |
---|---|
io.netty.bootstrap |
带有流畅API的助手类可以轻松实现典型的客户端和服务器端通道初始化。
|
io.netty.channel |
核心通道API是异步和事件驱动的各种传输的抽象,如
NIO Channel 。
|
io.netty.channel.epoll |
针对Linux的优化传输,使用
EPOLL Edge-Triggered Mode获得最高性能。
|
io.netty.channel.kqueue |
BSD专用运输。
|
io.netty.channel.rxtx |
基于
RXTX的串行和并行端口通信传输。
|
io.netty.channel.sctp |
抽象扩展核心通道API的SCTP套接字接口。
|
io.netty.channel.socket |
抽象扩展核心通道API的TCP和UDP套接字接口。
|
io.netty.channel.socket.oio |
旧阻塞基于I / O的套接字通道API实现 - 建议少量连接(<1000)。
|
io.netty.channel.udt |
UDT运输。
|
io.netty.channel.unix |
Unix专用传输。
|
io.netty.handler.codec.http2 |
用于发送和接收HTTP / 2帧的处理程序。
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
ServerBootstrapConfig.childOptions()
返回将用于子频道的已配置选项的副本。
|
java.util.Map<ChannelOption<?>,java.lang.Object> |
AbstractBootstrapConfig.options()
返回已配置选项的副本。
|
Modifier and Type | Method and Description |
---|---|
<T> ServerBootstrap |
ServerBootstrap.childOption(ChannelOption<T> childOption, T value)
允许指定 ChannelOption 其用于Channel 种情况下,一旦它们开始创建(受体后接受了Channel )。
|
<T> B |
AbstractBootstrap.option(ChannelOption<T> option, T value)
允许指定 ChannelOption 其用于Channel 种情况下,一旦他们得到了创建。
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<ByteBufAllocator> |
ChannelOption.ALLOCATOR |
static ChannelOption<java.lang.Boolean> |
ChannelOption.ALLOW_HALF_CLOSURE |
static ChannelOption<java.lang.Boolean> |
ChannelOption.AUTO_CLOSE
已过时。
|
static ChannelOption<java.lang.Boolean> |
ChannelOption.AUTO_READ |
static ChannelOption<java.lang.Integer> |
ChannelOption.CONNECT_TIMEOUT_MILLIS |
static ChannelOption<java.lang.Boolean> |
ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION
已过时。
|
static ChannelOption<java.net.InetAddress> |
ChannelOption.IP_MULTICAST_ADDR |
static ChannelOption<java.net.NetworkInterface> |
ChannelOption.IP_MULTICAST_IF |
static ChannelOption<java.lang.Boolean> |
ChannelOption.IP_MULTICAST_LOOP_DISABLED |
static ChannelOption<java.lang.Integer> |
ChannelOption.IP_MULTICAST_TTL |
static ChannelOption<java.lang.Integer> |
ChannelOption.IP_TOS |
static ChannelOption<java.lang.Integer> |
ChannelOption.MAX_MESSAGES_PER_READ
|
static ChannelOption<MessageSizeEstimator> |
ChannelOption.MESSAGE_SIZE_ESTIMATOR |
static ChannelOption<RecvByteBufAllocator> |
ChannelOption.RCVBUF_ALLOCATOR |
static ChannelOption<java.lang.Boolean> |
ChannelOption.SINGLE_EVENTEXECUTOR_PER_GROUP |
static ChannelOption<java.lang.Integer> |
ChannelOption.SO_BACKLOG |
static ChannelOption<java.lang.Boolean> |
ChannelOption.SO_BROADCAST |
static ChannelOption<java.lang.Boolean> |
ChannelOption.SO_KEEPALIVE |
static ChannelOption<java.lang.Integer> |
ChannelOption.SO_LINGER |
static ChannelOption<java.lang.Integer> |
ChannelOption.SO_RCVBUF |
static ChannelOption<java.lang.Boolean> |
ChannelOption.SO_REUSEADDR |
static ChannelOption<java.lang.Integer> |
ChannelOption.SO_SNDBUF |
static ChannelOption<java.lang.Integer> |
ChannelOption.SO_TIMEOUT |
static ChannelOption<java.lang.Boolean> |
ChannelOption.TCP_NODELAY |
static ChannelOption<java.lang.Integer> |
ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK
已过时。
|
static ChannelOption<java.lang.Integer> |
ChannelOption.WRITE_BUFFER_LOW_WATER_MARK
已过时。
|
static ChannelOption<WriteBufferWaterMark> |
ChannelOption.WRITE_BUFFER_WATER_MARK |
static ChannelOption<java.lang.Integer> |
ChannelOption.WRITE_SPIN_COUNT |
Modifier and Type | Method and Description |
---|---|
static <T> ChannelOption<T> |
ChannelOption.newInstance(java.lang.String name)
创建一个新 ChannelOption 对于给定name 或失败,并IllegalArgumentException 如果ChannelOption 对于给定name 存在。
|
static <T> ChannelOption<T> |
ChannelOption.valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)
|
static <T> ChannelOption<T> |
ChannelOption.valueOf(java.lang.String name)
返回指定名称的 ChannelOption 。
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
ChannelConfig.getOptions()
返回所有设置 ChannelOption 的。
|
protected java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultChannelConfig.getOptions(java.util.Map<ChannelOption<?>,java.lang.Object> result, ChannelOption<?>... options) |
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
ChannelConfig.getOption(ChannelOption<T> option)
返回给定的 ChannelOption 的值
|
protected java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultChannelConfig.getOptions(java.util.Map<ChannelOption<?>,java.lang.Object> result, ChannelOption<?>... options) |
<T> boolean |
DefaultChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
ChannelConfig.setOption(ChannelOption<T> option, T value)
使用指定的名称和值设置配置属性。
|
protected <T> void |
DefaultChannelConfig.validate(ChannelOption<T> option, T value) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultChannelConfig.getOptions(java.util.Map<ChannelOption<?>,java.lang.Object> result, ChannelOption<?>... options) |
boolean |
DefaultChannelConfig.setOptions(java.util.Map<ChannelOption<?>,?> options) |
boolean |
ChannelConfig.setOptions(java.util.Map<ChannelOption<?>,?> options)
从指定的
Map 设置配置属性。
|
Modifier and Type | Class and Description |
---|---|
class |
EpollChannelOption<T> |
Modifier and Type | Field and Description |
---|---|
static ChannelOption<EpollMode> |
EpollChannelOption.EPOLL_MODE |
static ChannelOption<java.lang.Boolean> |
EpollChannelOption.IP_FREEBIND |
static ChannelOption<java.lang.Boolean> |
EpollChannelOption.IP_TRANSPARENT |
static ChannelOption<java.lang.Boolean> |
EpollChannelOption.TCP_CORK |
static ChannelOption<java.lang.Integer> |
EpollChannelOption.TCP_DEFER_ACCEPT |
static ChannelOption<java.lang.Integer> |
EpollChannelOption.TCP_FASTOPEN |
static ChannelOption<java.lang.Boolean> |
EpollChannelOption.TCP_FASTOPEN_CONNECT |
static ChannelOption<java.lang.Integer> |
EpollChannelOption.TCP_KEEPCNT |
static ChannelOption<java.lang.Integer> |
EpollChannelOption.TCP_KEEPIDLE |
static ChannelOption<java.lang.Integer> |
EpollChannelOption.TCP_KEEPINTVL |
static ChannelOption<java.util.Map<java.net.InetAddress,byte[]>> |
EpollChannelOption.TCP_MD5SIG |
static ChannelOption<java.lang.Long> |
EpollChannelOption.TCP_NOTSENT_LOWAT |
static ChannelOption<java.lang.Boolean> |
EpollChannelOption.TCP_QUICKACK |
static ChannelOption<java.lang.Integer> |
EpollChannelOption.TCP_USER_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
EpollSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
EpollServerSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
EpollServerChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
EpollDomainSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
EpollDatagramChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
EpollChannelConfig.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> T |
EpollSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
EpollServerSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
EpollServerChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
EpollDomainSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
EpollDatagramChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
EpollChannelConfig.getOption(ChannelOption<T> option) |
<T> boolean |
EpollSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
EpollServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
EpollServerChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
EpollDomainSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
EpollDatagramChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
EpollChannelConfig.setOption(ChannelOption<T> option, T value) |
Modifier and Type | Class and Description |
---|---|
class |
KQueueChannelOption<T> |
Modifier and Type | Field and Description |
---|---|
static ChannelOption<java.lang.Boolean> |
KQueueChannelOption.RCV_ALLOC_TRANSPORT_PROVIDES_GUESS
如果这是
true 则
RecvByteBufAllocator.Handle#guess() 将被覆盖,以总是尝试读取与kqueue所说的可用字节数相同的字节数。
|
static ChannelOption<AcceptFilter> |
KQueueChannelOption.SO_ACCEPTFILTER |
static ChannelOption<java.lang.Integer> |
KQueueChannelOption.SO_SNDLOWAT |
static ChannelOption<java.lang.Boolean> |
KQueueChannelOption.TCP_NOPUSH |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
KQueueSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
KQueueServerSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
KQueueServerChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
KQueueDomainSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
KQueueDatagramChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
KQueueChannelConfig.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> T |
KQueueSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
KQueueServerSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
KQueueServerChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
KQueueDomainSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
KQueueDatagramChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
KQueueChannelConfig.getOption(ChannelOption<T> option) |
<T> boolean |
KQueueSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
KQueueServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
KQueueServerChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
KQueueDomainSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
KQueueDatagramChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
KQueueChannelConfig.setOption(ChannelOption<T> option, T value) |
Modifier and Type | Class and Description |
---|---|
class |
RxtxChannelOption<T>
已过时。
该传输将在下一个主要版本中删除。
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<java.lang.Integer> |
RxtxChannelOption.BAUD_RATE
已过时。
|
static ChannelOption<RxtxChannelConfig.Databits> |
RxtxChannelOption.DATA_BITS
已过时。
|
static ChannelOption<java.lang.Boolean> |
RxtxChannelOption.DTR
已过时。
|
static ChannelOption<RxtxChannelConfig.Paritybit> |
RxtxChannelOption.PARITY_BIT
已过时。
|
static ChannelOption<java.lang.Integer> |
RxtxChannelOption.READ_TIMEOUT
已过时。
|
static ChannelOption<java.lang.Boolean> |
RxtxChannelOption.RTS
已过时。
|
static ChannelOption<RxtxChannelConfig.Stopbits> |
RxtxChannelOption.STOP_BITS
已过时。
|
static ChannelOption<java.lang.Integer> |
RxtxChannelOption.WAIT_TIME
已过时。
|
Modifier and Type | Class and Description |
---|---|
class |
SctpChannelOption<T>
用于配置SCTP传输的选项
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<java.lang.Boolean> |
SctpChannelOption.SCTP_DISABLE_FRAGMENTS |
static ChannelOption<java.lang.Boolean> |
SctpChannelOption.SCTP_EXPLICIT_COMPLETE |
static ChannelOption<java.lang.Integer> |
SctpChannelOption.SCTP_FRAGMENT_INTERLEAVE |
static ChannelOption<com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams> |
SctpChannelOption.SCTP_INIT_MAXSTREAMS |
static ChannelOption<java.lang.Boolean> |
SctpChannelOption.SCTP_NODELAY |
static ChannelOption<java.net.SocketAddress> |
SctpChannelOption.SCTP_PRIMARY_ADDR |
static ChannelOption<java.net.SocketAddress> |
SctpChannelOption.SCTP_SET_PEER_PRIMARY_ADDR |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultSctpServerChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultSctpChannelConfig.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultSctpServerChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
DefaultSctpChannelConfig.getOption(ChannelOption<T> option) |
<T> boolean |
DefaultSctpServerChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
DefaultSctpChannelConfig.setOption(ChannelOption<T> option, T value) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultServerSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultDatagramChannelConfig.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
DefaultServerSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
DefaultDatagramChannelConfig.getOption(ChannelOption<T> option) |
<T> boolean |
DefaultSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
DefaultServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
DefaultDatagramChannelConfig.setOption(ChannelOption<T> option, T value) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultOioSocketChannelConfig.getOptions() |
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultOioServerSocketChannelConfig.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultOioSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
DefaultOioServerSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> boolean |
DefaultOioSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
<T> boolean |
DefaultOioServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) |
Modifier and Type | Class and Description |
---|---|
class |
UdtChannelOption<T>
已过时。
UDT运输不再维护并将被移除。
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<java.lang.Integer> |
UdtChannelOption.PROTOCOL_RECEIVE_BUFFER_SIZE
已过时。
见
OptionUDT.Protocol_Receive_Buffer_Size 。
|
static ChannelOption<java.lang.Integer> |
UdtChannelOption.PROTOCOL_SEND_BUFFER_SIZE
已过时。
见
OptionUDT.Protocol_Send_Buffer_Size 。
|
static ChannelOption<java.lang.Integer> |
UdtChannelOption.SYSTEM_RECEIVE_BUFFER_SIZE
已过时。
见
OptionUDT.System_Receive_Buffer_Size 。
|
static ChannelOption<java.lang.Integer> |
UdtChannelOption.SYSTEM_SEND_BUFFER_SIZE
已过时。
见
OptionUDT.System_Send_Buffer_Size 。
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultUdtServerChannelConfig.getOptions()
已过时。
|
java.util.Map<ChannelOption<?>,java.lang.Object> |
DefaultUdtChannelConfig.getOptions()
已过时。
|
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultUdtServerChannelConfig.getOption(ChannelOption<T> option)
已过时。
|
<T> T |
DefaultUdtChannelConfig.getOption(ChannelOption<T> option)
已过时。
|
<T> boolean |
DefaultUdtServerChannelConfig.setOption(ChannelOption<T> option, T value)
已过时。
|
<T> boolean |
DefaultUdtChannelConfig.setOption(ChannelOption<T> option, T value)
已过时。
|
Modifier and Type | Class and Description |
---|---|
class |
UnixChannelOption<T> |
Modifier and Type | Field and Description |
---|---|
static ChannelOption<DomainSocketReadMode> |
UnixChannelOption.DOMAIN_SOCKET_READ_MODE |
static ChannelOption<java.lang.Boolean> |
UnixChannelOption.SO_REUSEPORT |
Modifier and Type | Method and Description |
---|---|
<T> Http2StreamChannelBootstrap |
Http2StreamChannelBootstrap.option(ChannelOption<T> option, T value)
允许指定 ChannelOption 其用于Http2StreamChannel 种情况下,一旦他们得到了创建。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.