Package com.newstep.solid.netio
Abstract.
Abstract.
Abstract.
Abstract.
Abstract.
Full name:
com.newstep.solid.netio.CommChannelState
Public.
Visibility:
public
| Enumeration Literal Summary |
Visibility:
package
Visibility:
package
Visibility:
package
Visibility:
package
Visibility:
package
Parameters:
newState
Abstract.
Abstract.
Provides atomic operations, and manages data storage internaly.
Links:
Generalization Generalization Link
Provides atomic operations, and manages data storage internaly.
| Operation Summary |
| write | Writes payload data bytes to the channel as a properly formated message as defined by the protocol implemnted by the MessageChannel |
Provides atomic operations, and manages data storage internaly.
Sets the listener to receive messages from the MessageChannel
Parameters:
listener
receives messageReceived notification when a full message has been received
Abstract.
Writes payload data bytes to the channel as a properly formated message as defined by the protocol implemnted by
the MessageChannel
Parameters:
payLoad
Abstract.
Throws:
IOException
Links:
Generalization Generalization Link
Receives message data from a MessageChannel
Parameters:
message data (payload) bytes extracted from the specific protocol message
Abstract.
Abstract.
| Operation Summary |
| read | Reads a sequence of bytes into a buffer. An attempt is made to read up to r bytes from the stream, where r is the number of bytes remaining in the buffer, that is, data.remaining(), at the moment this method is invoked. |
| read | Performs a scattering read of a sequence of bytes into an array of buffers. An invocation of this method attempts to read up to r bytes from this stream, where r is the total number of bytes remaining in the specified buffer array, that is, data[0].remaining() + data[1].remaining() + ... + data[data.length-1].remaining() at the moment that this method is invoked. Th |
| write | Performs a gathering write of a sequence of bytes to this stream from the given buffers. An attempt is made to write up to r bytes to this stream, where r is the total number of bytes remaining in the specified buffer array, that is, payLoad[0].remaining() + payLoad[1].remaining() + ... + payLoad[payLoad.length-1].remaining() at the moment that this method is invoked. |
| write | Writes a sequence of bytes to this stream from the given buffer. An attempt is made to write up to r bytes to the stream, where r is the number of bytes remaining in the buffer, that is, payLoad.remaining(), at the moment this method is invoked. |
Reads a sequence of bytes into a buffer. An attempt is made to read up to r bytes from the stream, where r is the
number of bytes remaining in the buffer, that is, data.remaining(), at the moment this method is invoked.
Parameters:
data
The ByteBuffer to receive the data
Return:
number of bytes read from the stream or -1 if the stream was closed on the other end
Abstract.
Throws:
IOException
Performs a scattering read of a sequence of bytes into an array of buffers. An invocation of this method attempts
to read up to r bytes from this stream, where r is the total number of bytes remaining in the specified buffer
array, that is, data[0].remaining() + data[1].remaining() + ... + data[data.length-1].remaining() at the moment
that this method is invoked. Th
Parameters:
data
The ByteBuffers to receive the data
Return:
number of bytes read from the stream or -1 if the stream was closed on the other end
Abstract.
Throws:
IOException
Sets the listener to receive read notifications from the stream
Parameters:
listener
receives readNotify messages from the stream. readNotify method is invoked by the stream whenever
there are data available for reading after the listener has been registered with the stream. The read
operation may be performed either from within the readNotify() implementation (in the same thread) or
the read may be just scheduled to be performed from another thread. The listener will not be notified
again until it reads all the available data from the stream and after that new data becomes available.
Abstract.
Performs a gathering write of a sequence of bytes to this stream from the given buffers. An attempt is made to
write up to r bytes to this stream, where r is the total number of bytes remaining in the specified buffer array,
that is, payLoad[0].remaining() + payLoad[1].remaining() + ... + payLoad[payLoad.length-1].remaining() at the
moment that this method is invoked.
Parameters:
payLoad
The buffers from which bytes are to be retrieved
Abstract.
Throws:
IOException
Writes a sequence of bytes to this stream from the given buffer. An attempt is made to write up to r bytes to the
stream, where r is the number of bytes remaining in the buffer, that is, payLoad.remaining(), at the moment this
method is invoked.
Parameters:
payLoad
The buffer from which bytes are to be retrieved
Abstract.
Throws:
IOException
Links:
Generalization Generalization Link
Generalization Generalization Link
Links:
Generalization Generalization Link
| Operation Summary |
| readNotify | This method is invoked by the stream whenever there are data available for reading after the listener has been registered with the stream. The read operation may be performed either from within the readNotify() implementation (in the same thread) or the read may be just scheduled to be performed from another thread. The listener will not be notified again until it reads all the available data from the stream and after that new data becomes available. |
This method is invoked by the stream whenever there are data available for reading after the listener has been
registered with the stream. The read operation may be performed either from within the readNotify()
implementation (in the same thread) or the read may be just scheduled to be performed from another thread. The
listener will not be notified again until it reads all the available data from the stream and after that new data
becomes available.
Abstract.