public final class SynchronizedMessageSinkConduit extends AbstractSynchronizedSinkConduit<MessageSinkConduit> implements MessageSinkConduit
locknext| Constructor and Description |
|---|
SynchronizedMessageSinkConduit(MessageSinkConduit next)
Construct a new instance.
|
SynchronizedMessageSinkConduit(MessageSinkConduit next,
Object lock)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
send(ByteBuffer src)
Send a complete message.
|
boolean |
send(ByteBuffer[] srcs,
int offs,
int len)
Send a complete message.
|
boolean |
sendFinal(ByteBuffer src)
Send a complete message.
|
boolean |
sendFinal(ByteBuffer[] srcs,
int offs,
int len)
Send a complete message.
|
awaitWritable, awaitWritable, flush, getWriteThread, isWriteResumed, isWriteShutdown, resumeWrites, setWriteReadyHandler, suspendWrites, terminateWrites, truncateWrites, wakeupWritesgetWorkerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitWritable, awaitWritable, flush, getWriteThread, isWriteResumed, isWriteShutdown, resumeWrites, setWriteReadyHandler, suspendWrites, terminateWrites, truncateWrites, wakeupWritespublic SynchronizedMessageSinkConduit(MessageSinkConduit next)
next - the next conduit in the chainpublic SynchronizedMessageSinkConduit(MessageSinkConduit next, Object lock)
next - the next conduit in the chainlock - the lock object to usepublic boolean send(ByteBuffer src) throws IOException
MessageSinkConduitsend in interface MessageSinkConduitsrc - the message to sendtrue if the message was sent, or false if it would blockIOException - if an I/O error occurspublic boolean send(ByteBuffer[] srcs, int offs, int len) throws IOException
MessageSinkConduitsend in interface MessageSinkConduitsrcs - 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 blockIOException - if an I/O error occurspublic boolean sendFinal(ByteBuffer src) throws IOException
MessageSinkConduitsendFinal in interface MessageSinkConduitsrc - the message to sendtrue if the message was sent, or false if it would blockIOException - if an I/O error occurspublic boolean sendFinal(ByteBuffer[] srcs, int offs, int len) throws IOException
MessageSinkConduitsendFinal in interface MessageSinkConduitsrcs - 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 blockIOException - if an I/O error occursCopyright © 2019 JBoss by Red Hat. All rights reserved.