public final class SynchronizedMessageSinkConduit extends AbstractSynchronizedSinkConduit<MessageSinkConduit> implements MessageSinkConduit
lock
next
Constructor and Description |
---|
SynchronizedMessageSinkConduit(MessageSinkConduit next)
Construct a new instance.
|
SynchronizedMessageSinkConduit(MessageSinkConduit next,
java.lang.Object lock)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
send(java.nio.ByteBuffer src)
Send a complete message.
|
boolean |
send(java.nio.ByteBuffer[] srcs,
int offs,
int len)
Send a complete message.
|
boolean |
sendFinal(java.nio.ByteBuffer src)
Send a complete message.
|
boolean |
sendFinal(java.nio.ByteBuffer[] srcs,
int offs,
int len)
Send a complete message.
|
awaitWritable, awaitWritable, flush, getWriteThread, isWriteResumed, isWriteShutdown, resumeWrites, setWriteReadyHandler, suspendWrites, terminateWrites, truncateWrites, wakeupWrites
getWorker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
awaitWritable, awaitWritable, flush, getWriteThread, isWriteResumed, isWriteShutdown, resumeWrites, setWriteReadyHandler, suspendWrites, terminateWrites, truncateWrites, wakeupWrites
public SynchronizedMessageSinkConduit(MessageSinkConduit next)
next
- the next conduit in the chainpublic SynchronizedMessageSinkConduit(MessageSinkConduit next, java.lang.Object lock)
next
- the next conduit in the chainlock
- the lock object to usepublic boolean send(java.nio.ByteBuffer src) throws java.io.IOException
MessageSinkConduit
send
in interface MessageSinkConduit
src
- the message to sendtrue
if the message was sent, or false
if it would blockjava.io.IOException
- if an I/O error occurspublic boolean send(java.nio.ByteBuffer[] srcs, int offs, int len) throws java.io.IOException
MessageSinkConduit
send
in interface MessageSinkConduit
srcs
- the buffers holding the message to sendoffs
- the offset into the buffer array of the first bufferlen
- the number of buffers that contain data to sendtrue
if the message was sent, or false
if it would blockjava.io.IOException
- if an I/O error occurspublic boolean sendFinal(java.nio.ByteBuffer src) throws java.io.IOException
MessageSinkConduit
sendFinal
in interface MessageSinkConduit
src
- the message to sendtrue
if the message was sent, or false
if it would blockjava.io.IOException
- if an I/O error occurspublic boolean sendFinal(java.nio.ByteBuffer[] srcs, int offs, int len) throws java.io.IOException
MessageSinkConduit
sendFinal
in interface MessageSinkConduit
srcs
- the buffers holding the message to sendoffs
- the offset into the buffer array of the first bufferlen
- the number of buffers that contain data to sendtrue
if the message was sent, or false
if it would blockjava.io.IOException
- if an I/O error occursCopyright © 2016 JBoss, a division of Red Hat, Inc.