Package | Description |
---|---|
io.netty.bootstrap |
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
Modifier and Type | Method and Description |
---|---|
Map<ChannelOption<?>,Object> |
ServerBootstrapConfig.childOptions()
Returns a copy of the configured options which will be used for the child channels.
|
Map<ChannelOption<?>,Object> |
AbstractBootstrapConfig.options()
Returns a copy of the configured options.
|
Modifier and Type | Method and Description |
---|---|
<T> ServerBootstrap |
ServerBootstrap.childOption(ChannelOption<T> childOption,
T value)
Allow to specify a
ChannelOption which is used for the Channel instances once they get created
(after the acceptor accepted the Channel ). |
<T> B |
AbstractBootstrap.option(ChannelOption<T> option,
T value)
Allow to specify a
ChannelOption which is used for the Channel instances once they got
created. |
Modifier and Type | Method and Description |
---|---|
static <T> ChannelOption<T> |
ChannelOption.newInstance(String name)
Creates a new
ChannelOption for the given name or fail with an
IllegalArgumentException if a ChannelOption for the given name exists. |
static <T> ChannelOption<T> |
ChannelOption.valueOf(Class<?> firstNameComponent,
String secondNameComponent)
|
static <T> ChannelOption<T> |
ChannelOption.valueOf(String name)
Returns the
ChannelOption of the specified name. |
Modifier and Type | Method and Description |
---|---|
Map<ChannelOption<?>,Object> |
DefaultChannelConfig.getOptions() |
Map<ChannelOption<?>,Object> |
ChannelConfig.getOptions()
Return all set
ChannelOption 's. |
protected Map<ChannelOption<?>,Object> |
DefaultChannelConfig.getOptions(Map<ChannelOption<?>,Object> result,
ChannelOption<?>... options) |
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
ChannelConfig.getOption(ChannelOption<T> option)
Return the value of the given
ChannelOption |
protected Map<ChannelOption<?>,Object> |
DefaultChannelConfig.getOptions(Map<ChannelOption<?>,Object> result,
ChannelOption<?>... options) |
<T> boolean |
DefaultChannelConfig.setOption(ChannelOption<T> option,
T value) |
<T> boolean |
ChannelConfig.setOption(ChannelOption<T> option,
T value)
Sets a configuration property with the specified name and value.
|
protected <T> void |
DefaultChannelConfig.validate(ChannelOption<T> option,
T value) |
Modifier and Type | Method and Description |
---|---|
protected Map<ChannelOption<?>,Object> |
DefaultChannelConfig.getOptions(Map<ChannelOption<?>,Object> result,
ChannelOption<?>... options) |
boolean |
DefaultChannelConfig.setOptions(Map<ChannelOption<?>,?> options) |
boolean |
ChannelConfig.setOptions(Map<ChannelOption<?>,?> options)
Sets the configuration properties from the specified
Map . |
Modifier and Type | Method and Description |
---|---|
Map<ChannelOption<?>,Object> |
DefaultDatagramChannelConfig.getOptions() |
Map<ChannelOption<?>,Object> |
DefaultServerSocketChannelConfig.getOptions() |
Map<ChannelOption<?>,Object> |
DefaultSocketChannelConfig.getOptions() |
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultDatagramChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
DefaultServerSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> T |
DefaultSocketChannelConfig.getOption(ChannelOption<T> option) |
<T> boolean |
DefaultDatagramChannelConfig.setOption(ChannelOption<T> option,
T value) |
<T> boolean |
DefaultServerSocketChannelConfig.setOption(ChannelOption<T> option,
T value) |
<T> boolean |
DefaultSocketChannelConfig.setOption(ChannelOption<T> option,
T value) |
Modifier and Type | Class and Description |
---|---|
class |
NioChannelOption<T>
Provides
ChannelOption over a given SocketOption which is then passed through the underlying
NetworkChannel . |
Modifier and Type | Method and Description |
---|---|
static <T> ChannelOption<T> |
NioChannelOption.of(SocketOption<T> option)
Returns a
ChannelOption for the given SocketOption . |
Modifier and Type | Method and Description |
---|---|
Map<ChannelOption<?>,Object> |
DefaultOioSocketChannelConfig.getOptions()
Deprecated.
|
Map<ChannelOption<?>,Object> |
DefaultOioServerSocketChannelConfig.getOptions()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultOioSocketChannelConfig.getOption(ChannelOption<T> option)
Deprecated.
|
<T> T |
DefaultOioServerSocketChannelConfig.getOption(ChannelOption<T> option)
Deprecated.
|
<T> boolean |
DefaultOioSocketChannelConfig.setOption(ChannelOption<T> option,
T value)
Deprecated.
|
<T> boolean |
DefaultOioServerSocketChannelConfig.setOption(ChannelOption<T> option,
T value)
Deprecated.
|
Copyright © 2008–2019 The Netty Project. All rights reserved.