Package | Description |
---|---|
org.xnio.channels |
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 |
FramedMessageChannel
A connected message channel providing a SASL-style framing layer over a stream channel where each message is prepended
by a four-byte length field.
|
Modifier and Type | Method and Description |
---|---|
static <C extends WritableMessageChannel> |
Channels.sendBlocking(C channel,
ByteBuffer buffer)
Simple utility method to execute a blocking send on a message channel.
|
static <C extends WritableMessageChannel> |
Channels.sendBlocking(C channel,
ByteBuffer[] buffers,
int offs,
int len)
Simple utility method to execute a blocking gathering send on a message channel.
|
static <C extends WritableMessageChannel> |
Channels.sendBlocking(C channel,
ByteBuffer[] buffers,
int offs,
int len,
long time,
TimeUnit unit)
Simple utility method to execute a blocking gathering send on a message channel with a timeout.
|
static <C extends WritableMessageChannel> |
Channels.sendBlocking(C channel,
ByteBuffer buffer,
long time,
TimeUnit unit)
Simple utility method to execute a blocking send on a message channel with a timeout.
|
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends WritableMessageChannel> |
WritableMessageChannel.getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends WritableMessageChannel> |
WritableMessageChannel.getWriteSetter()
Get the setter which can be used to change the write listener for this channel.
|
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.