Package | Description |
---|---|
org.xnio.channels |
The core XNIO channel API.
|
org.xnio.conduits |
The XNIO conduit SPI.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConnectedMessageChannel
A channel that sends and receives messages to a connected peer.
|
interface |
MessageChannel
A channel that sends and receives whole messages.
|
Modifier and Type | Class and Description |
---|---|
class |
AssembledConnectedMessageChannel
A connected bidirectional message channel assembled from a readable and writable message channel.
|
class |
AssembledMessageChannel
A bidirectional message channel assembled from a readable and writable message channel.
|
class |
FramedMessageChannel
Deprecated.
This class is deprecated; use conduits instead.
|
Modifier and Type | Method and Description |
---|---|
static <C extends ReadableMessageChannel> |
Channels.receiveBlocking(C channel,
ByteBuffer buffer)
Simple utility method to execute a blocking receive on a readable message channel.
|
static <C extends ReadableMessageChannel> |
Channels.receiveBlocking(C channel,
ByteBuffer[] buffers,
int offs,
int len)
Simple utility method to execute a blocking receive on a readable message channel.
|
static <C extends ReadableMessageChannel> |
Channels.receiveBlocking(C channel,
ByteBuffer[] buffers,
int offs,
int len,
long time,
TimeUnit unit)
Simple utility method to execute a blocking receive on a readable message channel with a timeout.
|
static <C extends ReadableMessageChannel> |
Channels.receiveBlocking(C channel,
ByteBuffer buffer,
long time,
TimeUnit unit)
Simple utility method to execute a blocking receive on a readable message channel with a timeout.
|
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends ReadableMessageChannel> |
ReadableMessageChannel.getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends ReadableMessageChannel> |
ReadableMessageChannel.getReadSetter()
Get the setter which can be used to change the read listener for this channel.
|
Constructor and Description |
---|
AssembledConnectedMessageChannel(ConnectedChannel connection,
ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance.
|
AssembledConnectedMessageChannel(ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance.
|
AssembledMessageChannel(CloseableChannel closeable,
ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance.
|
AssembledMessageChannel(ReadableMessageChannel readable,
WritableMessageChannel writable)
Construct a new instance.
|
Modifier and Type | Class and Description |
---|---|
class |
ConduitReadableMessageChannel
A readable message channel which is backed by a message source conduit.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.