| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Pooled | transmitBuffer
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public | FramingMessageSinkConduit(final StreamSinkConduit
the delegate conduit to set next, final boolean true to use 4-byte lengths, false to use 2-byte lengthsthe transmit buffer to use transmitBuffer)
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | flush()
Overrides org. Implements org. Flush out any unwritten, buffered output. |
| public boolean | send(final ByteBuffer
the message to send src)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send srcs, final int the offset into the buffer array of the first buffer offs, final int the number of buffers that contain data to send len)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer
the message to send src)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer[]
the buffers holding the message to send srcs, int the offset into the buffer array of the first buffer offs, int the number of buffers that contain data to send len)Implements org. Send a complete message. |
| public void | terminateWrites()
Overrides org. Implements org. Signal that no more write data is forthcoming. |
| public void | truncateWrites()
Overrides org. Implements org. Terminate writes and discard any outstanding write data. |
| private boolean |
| longLengths | back to summary |
|---|---|
| private final boolean longLengths | |
| transmitBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> transmitBuffer
References Deprecated
See corresponding docs for further information. | |
| FramingMessageSinkConduit | back to summary |
|---|---|
| public FramingMessageSinkConduit(final StreamSinkConduit next, final boolean longLengths, final Pooled<ByteBuffer> transmitBuffer)
References Deprecated
See corresponding docs for further information. Construct a new instance.
| |
| flush | back to summary |
|---|---|
| public boolean flush() throws IOException Overrides org. Implements org. Doc from org. Flush out any unwritten, buffered output.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer src) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] srcs, final int offs, final int len) throws IOException Implements org. Doc from org. Send a complete message.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer src) throws IOException Implements org. Doc from org. Send a complete message. If the message is successfully sent then the sink will have its writes terminated.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer[] srcs, int offs, int len) throws IOException Implements org. Doc from org. Send a complete message. If the message is successfully sent then the sink will have its writes terminated.
| |
| terminateWrites | back to summary |
|---|---|
| public void terminateWrites() throws IOException Overrides org. Implements org. Doc from org. Signal that no more write data is forthcoming. The conduit must be | |
| truncateWrites | back to summary |
|---|---|
| public void truncateWrites() throws IOException Overrides org. Implements org. Doc from org. Terminate writes and discard any outstanding write data. The conduit is terminated and flushed regardless of the outcome of this method.
| |
| writeBuffer | back to summary |
|---|---|
| private boolean writeBuffer() throws IOException | |