public interface NetworkChannel implements Channel
Known Indirect Subclasses

A channel to a network socket.

A channel that implements this interface is a channel to a network socket. The bind method is used to bind the socket to a local address, the getLocalAddress method returns the address that the socket is bound to, and the setOption and getOption methods are used to set and query socket options. An implementation of this interface should specify the socket options that it supports.

The bind and setOption methods that do not otherwise have a value to return are specified to return the network channel upon which they are invoked. This allows method invocations to be chained. Implementations of this interface should specialize the return type so that method invocations on the implementation class can be chained.

Public Method Summary

abstract NetworkChannel
bind(SocketAddress local)
Binds the channel's socket to a local address.
abstract SocketAddress
Returns the socket address that this channel's socket is bound to, or null if the socket is not bound.
abstract <T> T
getOption(SocketOption<T> name)
Returns the value of a socket option.
abstract <T> NetworkChannel
setOption(SocketOption<T> name, T value)
Sets the value of a socket option.