Top Description Methods
io.netty.channel.socket

public Interface DuplexChannel

extends Channel
Known Direct Subinterfaces
io.netty.channel.socket.SocketChannel
Imports
io.netty.channel.Channel, .ChannelFuture, .ChannelPromise, java.net.Socket

A duplex Channel that has two sides that can be shutdown independently.

Method Summary

Modifier and TypeMethod and Description
public boolean
isInputShutdown()

Returns true if and only if the remote peer shut down its output so that no more data is received from this channel.

public boolean
public boolean
isShutdown()

Determine if both the input and output of this channel have been shutdown.

public ChannelFuture

Returns:

will be completed when both shutdown operations complete.
shutdown
()

Will shutdown the input and output sides of this channel.

public ChannelFuture

Returns:

will be completed when both shutdown operations complete.
shutdown
(ChannelPromise
will be completed when both shutdown operations complete.
promise
)

Will shutdown the input and output sides of this channel.

public ChannelFuture
public ChannelFuture
shutdownInput(ChannelPromise promise)

Will shutdown the input and notify ChannelPromise.

public ChannelFuture
public ChannelFuture
shutdownOutput(ChannelPromise promise)

Will shutdown the output and notify ChannelPromise.

Inherited from io.netty.channel.Channel:
allocbytesBeforeUnwritablebytesBeforeWritablecloseFutureconfigeventLoopflushidisActiveisOpenisRegisteredisWritablelocalAddressmetadataparentpipelinereadremoteAddressunsafe

Method Detail

isInputShutdownback to summary
public boolean isInputShutdown()

Returns true if and only if the remote peer shut down its output so that no more data is received from this channel. Note that the semantic of this method is different from that of Socket#shutdownInput() and Socket#isInputShutdown().

isOutputShutdownback to summary
public boolean isOutputShutdown()
See Also
Socket#isOutputShutdown()
isShutdownback to summary
public boolean isShutdown()

Determine if both the input and output of this channel have been shutdown.

shutdownback to summary
public ChannelFuture shutdown()

Will shutdown the input and output sides of this channel.

Returns:ChannelFuture

will be completed when both shutdown operations complete.

shutdownback to summary
public ChannelFuture shutdown(ChannelPromise promise)

Will shutdown the input and output sides of this channel.

Parameters
promise:ChannelPromise

will be completed when both shutdown operations complete.

Returns:ChannelFuture

will be completed when both shutdown operations complete.

shutdownInputback to summary
public ChannelFuture shutdownInput()
See Also
Socket#shutdownInput()
shutdownInputback to summary
public ChannelFuture shutdownInput(ChannelPromise promise)

Will shutdown the input and notify ChannelPromise.

See Also
Socket#shutdownInput()
shutdownOutputback to summary
public ChannelFuture shutdownOutput()
See Also
Socket#shutdownOutput()
shutdownOutputback to summary
public ChannelFuture shutdownOutput(ChannelPromise promise)

Will shutdown the output and notify ChannelPromise.

See Also
Socket#shutdownOutput()