Package | Description |
---|---|
org.xnio |
The main API package for XNIO.
|
org.xnio.channels |
The core XNIO channel API.
|
org.xnio.conduits |
The XNIO conduit SPI.
|
Modifier and Type | Method and Description |
---|---|
static <T extends SuspendableWriteChannel> |
ChannelListeners.flushingChannelListener(ChannelListener<? super T> delegate,
ChannelExceptionHandler<? super T> exceptionHandler)
A flushing channel listener.
|
static <T extends SuspendableWriteChannel> |
ChannelListeners.writeShutdownChannelListener(ChannelListener<? super T> delegate,
ChannelExceptionHandler<? super T> exceptionHandler)
A write shutdown channel listener.
|
static <T extends SuspendableWriteChannel> |
ChannelListeners.writeSuspendingChannelListener(ChannelListener<? super T> delegate)
A write-suspending channel listener.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BoundMultipointMessageChannel
A multipoint datagram channel.
|
interface |
ConnectedMessageChannel
A channel that sends and receives messages to a connected peer.
|
interface |
ConnectedSslStreamChannel
A TLS-encapsulated connected stream channel.
|
interface |
ConnectedStreamChannel
A stream channel that is a connection between a local and remote endpoint.
|
interface |
MessageChannel
A channel that sends and receives whole messages.
|
interface |
MulticastMessageChannel
A multicast-capable point-to-multipoint channel.
|
interface |
MultipointMessageChannel
A point-to-multipoint message channel.
|
interface |
StreamChannel
A stream channel.
|
interface |
StreamSinkChannel
A stream sink channel.
|
interface |
SuspendableChannel
A suspendable bidirectional channel.
|
interface |
WritableMessageChannel
A channel that can send messages.
|
interface |
WritableMultipointMessageChannel
The writable side of a multipoint message channel.
|
Modifier and Type | Class and Description |
---|---|
class |
AssembledConnectedMessageChannel
A connected bidirectional message channel assembled from a readable and writable message channel.
|
class |
AssembledConnectedSslStreamChannel
A connected SSL stream channel assembled from a stream source and stream sink.
|
class |
AssembledConnectedStreamChannel
A connected stream channel assembled from a stream source and stream sink.
|
class |
AssembledMessageChannel
A bidirectional message channel assembled from a readable and writable message channel.
|
class |
AssembledStreamChannel
A stream channel assembled from a stream source and stream sink.
|
class |
FixedLengthStreamSinkChannel
A channel which writes a fixed amount of data.
|
class |
FramedMessageChannel
Deprecated.
This class is deprecated; use conduits instead.
|
class |
NullStreamSinkChannel
A bit-bucket stream sink channel.
|
class |
SplitStreamSinkChannel
A half-duplex (write side) wrapper for a full-duplex channel.
|
class |
TranslatingSuspendableChannel<C extends SuspendableChannel,W extends SuspendableChannel>
Deprecated.
This class is deprecated; use conduits instead.
|
Modifier and Type | Method and Description |
---|---|
static <T extends SuspendableWriteChannel> |
Channels.setWriteListener(T channel,
ChannelListener<? super T> listener)
Set the write listener for a channel (type-safe).
|
static <C extends WritableByteChannel & SuspendableWriteChannel> |
Channels.writeBlocking(C channel,
ByteBuffer buffer)
Simple utility method to execute a blocking write on a byte channel.
|
static <C extends GatheringByteChannel & SuspendableWriteChannel> |
Channels.writeBlocking(C channel,
ByteBuffer[] buffers,
int offs,
int len)
Simple utility method to execute a blocking write on a gathering byte channel.
|
static <C extends GatheringByteChannel & SuspendableWriteChannel> |
Channels.writeBlocking(C channel,
ByteBuffer[] buffers,
int offs,
int len,
long time,
TimeUnit unit)
Simple utility method to execute a blocking write on a gathering byte channel with a timeout.
|
static <C extends WritableByteChannel & SuspendableWriteChannel> |
Channels.writeBlocking(C channel,
ByteBuffer buffer,
long time,
TimeUnit unit)
Simple utility method to execute a blocking write on a byte channel with a timeout.
|
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends SuspendableWriteChannel> |
SuspendableWriteChannel.getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends SuspendableWriteChannel> |
SuspendableWriteChannel.getWriteSetter()
Get the setter which can be used to change the write listener for this channel.
|
Modifier and Type | Method and Description |
---|---|
static void |
Channels.flushBlocking(SuspendableWriteChannel channel)
Simple utility method to execute a blocking flush on a writable channel.
|
static void |
Channels.resumeWritesAsync(SuspendableWriteChannel channel)
Resume writes asynchronously.
|
static void |
Channels.shutdownWritesBlocking(SuspendableWriteChannel channel)
Simple utility method to execute a blocking write shutdown on a writable channel.
|
Constructor and Description |
---|
AssembledChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
Construct a new instance.
|
AssembledConnectedChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
Construct a new instance.
|
AssembledSslChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
Construct a new instance.
|
Modifier and Type | Class and Description |
---|---|
static class |
WriteReadyHandler.ChannelListenerHandler<C extends SuspendableWriteChannel & WriteListenerSettable<C> & CloseListenerSettable<C>>
A write ready handler which calls channel listener(s).
|
Modifier and Type | Class and Description |
---|---|
class |
ConduitStreamSinkChannel
A stream sink channel which wraps a stream sink conduit.
|
class |
ConduitWritableMessageChannel
A writable message channel which is backed by a message sink conduit.
|
Copyright © 2015. All rights reserved.