Java io.netty.channel.embedded EmbeddedChannel fields, constructors, methods, implement or subclass

Example usage for Java io.netty.channel.embedded EmbeddedChannel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.channel.embedded EmbeddedChannel.

The text is from its open source code.

Subclass

io.netty.channel.embedded.EmbeddedChannel has subclasses.
Click this link to see all its subclasses.

Field

Constructor

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.

Method

ByteBufAllocatoralloc()
Attributeattr(AttributeKey key)
voidcheckException()
Check if there was any Throwable received and if so rethrow it.
ChannelFutureclose()
ChannelFuturecloseFuture()
ChannelFuturedisconnect()
booleanfinish()
Mark this Channel as finished.
booleanfinishAndReleaseAll()
Mark this Channel as finished and release all pending message in the inbound and outbound buffer.
Channelflush()
EmbeddedChannelflushOutbound()
Flushes the outbound of this Channel .
booleanisActive()
booleanisOpen()
booleanisRegistered()
ChannelPromisenewPromise()
ChannelPipelinepipeline()
TreadInbound()
Return received data from this Channel
TreadOutbound()
Read data from the outbound.
voidrunPendingTasks()
Run all tasks (which also includes scheduled tasks) that are pending in the EventLoop for this Channel
ChannelFuturewrite(Object msg)
ChannelFuturewriteAndFlush(Object msg)
ChannelFuturewriteAndFlush(Object msg, ChannelPromise promise)
booleanwriteInbound(Object... msgs)
Write messages to the inbound of this Channel .
ChannelFuturewriteOneInbound(Object msg)
Writes one message to the inbound of this Channel and does not flush it.
ChannelFuturewriteOneOutbound(Object msg, ChannelPromise promise)
Writes one message to the outbound of this Channel and does not flush it.
ChannelFuturewriteOneOutbound(Object msg)
Writes one message to the outbound of this Channel and does not flush it.
booleanwriteOutbound(Object... msgs)
Write messages to the outbound of this Channel .