Package org.jboss.xnio.channels

Defines an enhanced set of channels.


Interface Summary
BoundChannel<A> A channel that is bound to a local address.
BoundServer<A,T extends BoundChannel<A>> A server that is bound to a local address, and which may accept connections.
CloseableChannel A channel which is closable.
Configurable A channel that has parameters that may be configured while the channel is open.
ConnectedChannel<A> A channel that has a local and peer endpoint address.
ConnectedStreamChannel<A> A stream channel that is a connection between a local and remote endpoint.
DatagramChannel<A> A channel that sends and receives datagrams.
LocalChannel A connected local IPC channel.
MessageChannel A channel that sends and receives whole messages.
MessageHandler A handler interface for incoming messages.
MultipointDatagramChannel<A> A multipoint datagram channel.
MultipointMessageChannel<A> A point-to-multipoint message channel.
MultipointReadableMessageChannel<A> The readable side of a multipoint message channel.
MultipointReadResult<A> The result of a multipoint message read.
MultipointWritableMessageChannel<A> The writable side of a multipoint message channel.
ReadableAllocatedMessageChannel A channel that can receive messages.
ReadableMessageChannel A channel that can receive messages.
SslChannel A channel which can use SSL/TLS to negotiate a security layer.
SslTcpChannel A TLS-encapsulated TCP channel.
StreamChannel A stream channel.
StreamSinkChannel A stream sink channel.
StreamSourceChannel A stream source channel.
SuspendableChannel A suspendable bidirectional channel.
SuspendableReadChannel A suspendable readable channel.
SuspendableWriteChannel A suspendable writable channel.
TcpChannel A TCP channel.
UdpChannel A UDP channel.
UdpChannel.Key A registration key for a multicast group.
WritableMessageChannel A channel that can send messages.

Class Summary
BlockingByteChannel A blocking wrapper for a StreamChannel.
BlockingReadableByteChannel A blocking wrapper for a StreamSourceChannel.
BlockingWritableByteChannel A blocking wrapper for a StreamChannel.
ChannelInputStream An input stream which reads from a stream source channel.
ChannelOutputStream An output stream which writes to a stream sink channel.
Channels A utility class containing static methods to support channel usage.

Exception Summary
UnsupportedOptionException An exception that is thrown when an invalid option is specified for a Configurable.

Package org.jboss.xnio.channels Description

Defines an enhanced set of channels. A channel is an abstraction representing a means of performing data transfer between processes and systems.

The channels provided by this package are extended beyond the basic NIO channels, including special channel types for point-to-point and point-to-multipoint message-oriented channels, multicast support, and generalized support for stream channels (such as serial ports).

In addition, these channels provide a simplified alternative to selectors by way of the SuspendableChannel interface. Rather than associating a channel with a selector, and subsequently imposing complex locking and usage restrictions on that association, you simply define a handler which informs the channel when the handler is ready to handle reads or writes on the channel.

See java.nio.channels for more information about channels.


Copyright © 2009 JBoss, a division of Red Hat, Inc.