Example usage for Java io.netty.channel.embedded EmbeddedChannel fields, constructors, methods, implement or subclass
The text is from its open source code.
ChannelConfig | config |
Queue | inboundMessages |
Queue | outboundMessages |
EmbeddedChannel() Create a new instance with an EmbeddedChannelId and an empty pipeline. | |
EmbeddedChannel(ChannelId channelId) Create a new instance with the specified ID and an empty pipeline. | |
EmbeddedChannel(ChannelHandler... handlers) Create a new instance with the pipeline initialized with the specified handlers. | |
EmbeddedChannel(boolean register, boolean hasDisconnect, ChannelHandler... handlers) Create a new instance with the pipeline initialized with the specified handlers. | |
EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelHandler... handlers) Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. | |
EmbeddedChannel(boolean hasDisconnect, ChannelHandler... handlers) Create a new instance with the pipeline initialized with the specified handlers. | |
EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers) Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. | |
EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers) Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. | |
EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, final ChannelConfig config, final ChannelHandler... handlers) Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. |
ByteBufAllocator | alloc() |
Attribute | attr(AttributeKey |
void | checkException() Check if there was any Throwable received and if so rethrow it. |
ChannelFuture | close() |
ChannelFuture | closeFuture() |
ChannelFuture | disconnect() |
boolean | finish() Mark this Channel as finished. |
boolean | finishAndReleaseAll() Mark this Channel as finished and release all pending message in the inbound and outbound buffer. |
Channel | flush() |
EmbeddedChannel | flushOutbound() Flushes the outbound of this Channel . |
boolean | isActive() |
boolean | isOpen() |
boolean | isRegistered() |
ChannelPromise | newPromise() |
ChannelPipeline | pipeline() |
T | readInbound() Return received data from this Channel |
T | readOutbound() Read data from the outbound. |
void | runPendingTasks() Run all tasks (which also includes scheduled tasks) that are pending in the EventLoop for this Channel |
ChannelFuture | write(Object msg) |
ChannelFuture | writeAndFlush(Object msg) |
ChannelFuture | writeAndFlush(Object msg, ChannelPromise promise) |
boolean | writeInbound(Object... msgs) Write messages to the inbound of this Channel . |
ChannelFuture | writeOneInbound(Object msg) Writes one message to the inbound of this Channel and does not flush it. |
ChannelFuture | writeOneOutbound(Object msg, ChannelPromise promise) Writes one message to the outbound of this Channel and does not flush it. |
ChannelFuture | writeOneOutbound(Object msg) Writes one message to the outbound of this Channel and does not flush it. |
boolean | writeOutbound(Object... msgs) Write messages to the outbound of this Channel . |