public interface ReadableMessageChannel extends SuspendableReadChannel, Configurable
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends ReadableMessageChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends ReadableMessageChannel> |
getReadSetter()
Get the setter which can be used to change the read listener for this channel.
|
int |
receive(ByteBuffer buffer)
Receive a message.
|
long |
receive(ByteBuffer[] buffers)
Receive a message.
|
long |
receive(ByteBuffer[] buffers,
int offs,
int len)
Receive a message.
|
awaitReadable, awaitReadable, getReadThread, isReadResumed, resumeReads, shutdownReads, suspendReads, wakeupReads
close, getWorker
getOption, setOption, supportsOption
int receive(ByteBuffer buffer) throws IOException
buffer
- the buffer that will hold the messageIOException
- if an I/O error occurslong receive(ByteBuffer[] buffers) throws IOException
buffers
- the buffers that will hold the messageIOException
- if an I/O error occurslong receive(ByteBuffer[] buffers, int offs, int len) throws IOException
buffers
- the buffers that will hold the messageoffs
- the offset into the array of buffers of the first buffer to read intolen
- the number of buffers to fillIOException
- if an I/O error occursChannelListener.Setter<? extends ReadableMessageChannel> getReadSetter()
getReadSetter
in interface SuspendableReadChannel
ChannelListener.Setter<? extends ReadableMessageChannel> getCloseSetter()
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface SuspendableReadChannel
Copyright © 2018 JBoss by Red Hat. All rights reserved.