Deprecated
This class is deprecated; use conduits instead.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final Object | |
| private final Pooled | receiveBuffer
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final Pooled | transmitBuffer
References Deprecated
Pooled is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | FramedMessageChannel(final ConnectedStreamChannel
the channel to wrap channel, final ByteBuffer the receive buffer (should be direct) receiveBuffer, final ByteBuffer the send buffer (should be direct) transmitBuffer)Construct a new instance. |
| public | FramedMessageChannel(final ConnectedStreamChannel
the channel to wrap channel, final Pooled<ByteBuffer> the receive buffer (should be direct) receiveBuffer, final Pooled<ByteBuffer> the send buffer (should be direct) 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 |
|---|---|
| protected void | closeAction(final boolean
if reads were previously shut down readShutDown, final boolean if writes were previously shut down writeShutDown)Overrides org. The action to perform when the channel is closed via the |
| private boolean | |
| private boolean | |
| protected boolean | flushAction(final boolean
true if the channel's write side has been shut down, false otherwiseOverrides org. The action to perform when the channel is flushed. |
| public ConnectedStreamChannel | Returns: the underlying channelOverrides org. Implements org. Get the underlying channel. |
| public SocketAddress | getLocalAddress()
Implements org. Get the local address that this channel is bound to. |
| public <A extends SocketAddress> A | getLocalAddress(final Class<A>
the address type class type)Implements org. Get the local address of a given type, or |
| public SocketAddress | getPeerAddress()
Implements org. Get the peer address of this channel. |
| public <A extends SocketAddress> A | getPeerAddress(final Class<A>
the address type class type)Implements org. Get the peer address of a given type, or |
| public int | receive(final ByteBuffer
the buffer that will hold the message buffer)Implements org. Receive a message. |
| public long | receive(final ByteBuffer[]
the buffers that will hold the message buffers)Implements org. Receive a message. |
| public long | receive(final ByteBuffer[]
the buffers that will hold the message buffers, final int the offset into the array of buffers of the first buffer to read into offs, final int the number of buffers to fill len)Implements org. Receive a message. |
| public boolean | send(final ByteBuffer
the message to send buffer)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send buffers)Implements org. Send a complete message. |
| public boolean | send(final ByteBuffer[]
the buffers holding the message to send buffers, 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 buffer)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer[]
the buffers holding the message to send buffers)Implements org. Send a complete message. |
| public boolean | sendFinal(ByteBuffer[]
the buffers holding the message to send buffers, 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. |
| protected void | shutdownReadsAction(final boolean writeComplete)
Overrides org. The action to perform when reads are shut down. |
| protected void | shutdownWritesComplete(final boolean
true if the read side was already shut down, false otherwiseOverrides org. Notification that the channel has successfully flushed after having shut down writes. |
| log | back to summary |
|---|---|
| private static final Logger log | |
| readLock | back to summary |
|---|---|
| private final Object readLock | |
| receiveBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> receiveBuffer
References Deprecated
See corresponding docs for further information. | |
| transmitBuffer | back to summary |
|---|---|
| private final Pooled<ByteBuffer> transmitBuffer
References Deprecated
See corresponding docs for further information. | |
| writeLock | back to summary |
|---|---|
| private final Object writeLock | |
| FramedMessageChannel | back to summary |
|---|---|
| public FramedMessageChannel(final ConnectedStreamChannel channel, final ByteBuffer receiveBuffer, final ByteBuffer transmitBuffer) Construct a new instance.
| |
| FramedMessageChannel | back to summary |
|---|---|
| public FramedMessageChannel(final ConnectedStreamChannel channel, final Pooled<ByteBuffer> receiveBuffer, final Pooled<ByteBuffer> transmitBuffer)
References Deprecated
See corresponding docs for further information. Construct a new instance.
| |
| closeAction | back to summary |
|---|---|
| protected void closeAction(final boolean readShutDown, final boolean writeShutDown) throws IOException Overrides org. Doc from org. The action to perform when the channel is closed via the
| |
| doFlush | back to summary |
|---|---|
| private boolean doFlush() throws IOException | |
| doFlushBuffer | back to summary |
|---|---|
| private boolean doFlushBuffer() throws IOException | |
| flushAction | back to summary |
|---|---|
| protected boolean flushAction(final boolean shutDown) throws IOException Overrides org. Doc from org. The action to perform when the channel is flushed. By default, this method delegates to the underlying channel.
If the
| |
| getChannel | back to summary |
|---|---|
| public ConnectedStreamChannel getChannel() Overrides org. Implements org. Get the underlying channel.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements org. Doc from org. Get the local address that this channel is bound to.
| |
| getLocalAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getLocalAddress(final Class<A> type) Implements org. Doc from org. Get the local address of a given type, or
| |
| getPeerAddress | back to summary |
|---|---|
| public SocketAddress getPeerAddress() Implements org. Doc from org. Get the peer address of this channel.
| |
| getPeerAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getPeerAddress(final Class<A> type) Implements org. Doc from org. Get the peer address of a given type, or
| |
| receive | back to summary |
|---|---|
| public int receive(final ByteBuffer buffer) throws IOException Implements org. Doc from org. Receive a message.
| |
| receive | back to summary |
|---|---|
| public long receive(final ByteBuffer[] buffers) throws IOException Implements org. Doc from org. Receive a message.
| |
| receive | back to summary |
|---|---|
| public long receive(final ByteBuffer[] buffers, final int offs, final int len) throws IOException Implements org. Doc from org. Receive a message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer buffer) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] buffers) throws IOException Implements org. Doc from org. Send a complete message.
| |
| send | back to summary |
|---|---|
| public boolean send(final ByteBuffer[] buffers, 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 buffer) throws IOException Implements org. Doc from org. Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer[] buffers) throws IOException Implements org. Doc from org. Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
| |
| sendFinal | back to summary |
|---|---|
| public boolean sendFinal(ByteBuffer[] buffers, int offs, int len) throws IOException Implements org. Doc from org. Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
| |
| shutdownReadsAction | back to summary |
|---|---|
| protected void shutdownReadsAction(final boolean writeComplete) throws IOException Overrides org. Doc from org. The action to perform when reads are shut down. By default, this method delegates to the underlying channel.
| |
| shutdownWritesComplete | back to summary |
|---|---|
| protected void shutdownWritesComplete(final boolean readShutDown) throws IOException Overrides org. Doc from org. Notification that the channel has successfully flushed after having shut down writes. The underlying channel may not yet be fully flushed at this time.
| |