
public final class SynchronizedMessageSourceConduit<D extends MessageSourceConduit> extends AbstractSynchronizedSourceConduit<D> implements MessageSourceConduit
locknext| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedMessageSourceConduit(D next)
Construct a new instance.
|
protected |
SynchronizedMessageSourceConduit(D next,
Object lock)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
receive(ByteBuffer dst)
Receive a message.
|
long |
receive(ByteBuffer[] dsts,
int offs,
int len)
Receive a message.
|
awaitReadable, awaitReadable, getReadThread, isReadResumed, isReadShutdown, resumeReads, setReadReadyHandler, suspendReads, terminateReads, wakeupReadsgetWorkerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitReadable, awaitReadable, getReadThread, isReadResumed, isReadShutdown, resumeReads, setReadReadyHandler, suspendReads, terminateReads, wakeupReadsprotected SynchronizedMessageSourceConduit(D next)
next - the next conduit in the chainpublic int receive(ByteBuffer dst) throws IOException
MessageSourceConduitreceive in interface MessageSourceConduitIOException - if an I/O error occurspublic long receive(ByteBuffer[] dsts, int offs, int len) throws IOException
MessageSourceConduitreceive in interface MessageSourceConduitoffs - 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 occursCopyright © 2010 JBoss, a division of Red Hat, Inc.