|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A
- the type of address associated with this channelpublic interface MultipointWritableMessageChannel<A>
The writable side of a multipoint message channel.
MultipointMessageChannel
Method Summary | |
---|---|
ChannelListener.Setter<? extends MultipointWritableMessageChannel<A>> |
getCloseSetter()
Get the setter which can be used to change the close handler for this channel. |
ChannelListener.Setter<? extends MultipointWritableMessageChannel<A>> |
getWriteSetter()
Get the setter which can be used to change the write handler for this channel. |
boolean |
send(A target,
java.nio.ByteBuffer buffer)
Send a buffer to a destination. |
boolean |
send(A target,
java.nio.ByteBuffer[] buffers)
Send a message with data from multiple buffers to a destination. |
boolean |
send(A target,
java.nio.ByteBuffer[] buffers,
int offset,
int length)
Send a message with data from multiple buffers to a destination. |
Methods inherited from interface org.jboss.xnio.channels.SuspendableWriteChannel |
---|
awaitWritable, awaitWritable, flush, resumeWrites, shutdownWrites, suspendWrites |
Methods inherited from interface java.nio.channels.Channel |
---|
close, isOpen |
Methods inherited from interface org.jboss.xnio.channels.Configurable |
---|
getOption, setOption, supportsOption |
Method Detail |
---|
boolean send(A target, java.nio.ByteBuffer buffer) throws java.io.IOException
target
- the destinationbuffer
- the data to send
true
if the message was sent, or false
if the channel is not currently writable
java.io.IOException
- if an I/O error occursboolean send(A target, java.nio.ByteBuffer[] buffers) throws java.io.IOException
target
- the destinationbuffers
- the data to send
true
if the message was sent, or false
if the channel is not currently writable
java.io.IOException
- if an I/O error occursboolean send(A target, java.nio.ByteBuffer[] buffers, int offset, int length) throws java.io.IOException
target
- the destinationbuffers
- the data to sendoffset
- the offset into the buffers
arraylength
- the number of buffers to read from
true
if the message was sent, or false
if the channel is not currently writable
java.io.IOException
- if an I/O error occursChannelListener.Setter<? extends MultipointWritableMessageChannel<A>> getWriteSetter()
getWriteSetter
in interface SuspendableWriteChannel
ChannelListener.Setter<? extends MultipointWritableMessageChannel<A>> getCloseSetter()
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface SuspendableWriteChannel
|
XNIO API 2.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |