| Modifier and Type | Method and Description |
|---|---|
| public default byte | Returns: numberGet last message sequence number, as it was stored by |
| public default H | Returns: MessageHeader of the next messageRead the next message header from server, possibly blocking indefinitely until the message is received,
and cache it so that the next |
| public default M | Returns: Message instanceMessage object to reuse. May be ignored by implementation.MessageHeader instanceRead message from server into to the given |
| public default void | pushMessageListener(MessageListener<M> l)
Queue a |
| public H | Returns: MessageHeader of the next messageRead the next message header from server, possibly blocking indefinitely until the message is received. |
| public M | Returns: Message instanceMessage object to reuse. May be ignored by implementation.MessageHeader instanceRead message from server into to the given |
| public default M | Returns: Message instanceMessage object to reuse. May be ignored by implementation.Expected type of message. expectedType)Read message from server into to the given |
| public default void | |
| public default void | skipPacket()
Skips the next packet, or the current one if previously probed, by reading and discarding it. |
| public default void | |
| public default void | stopAfterNextMessage()
Signal to the reader that it should stop reading messages after reading the next message. |
| public default MessageReader | Returns: MessageReaderReturn the previous MessageReader instance from the decorators chain or the current MessageReader if it is the first entry in a chain. |
| public default MessageReader |
| getMessageSequence | back to summary |
|---|---|
| public default byte getMessageSequence() Get last message sequence number, as it was stored by
| |
| probeHeader | back to summary |
|---|---|
| public default H probeHeader() throws IOException Read the next message header from server, possibly blocking indefinitely until the message is received,
and cache it so that the next
| |
| probeMessage | back to summary |
|---|---|
| public default M probeMessage(Optional<M> reuse, H header) throws IOException Read message from server into to the given
| |
| pushMessageListener | back to summary |
|---|---|
| public default void pushMessageListener(MessageListener<M> l) Queue a
| |
| readHeader | back to summary |
|---|---|
| public H readHeader() throws IOException Read the next message header from server, possibly blocking indefinitely until the message is received.
| |
| readMessage | back to summary |
|---|---|
| public M readMessage(Optional<M> reuse, H header) throws IOException Read message from server into to the given
| |
| readMessage | back to summary |
|---|---|
| public default M readMessage(Optional<M> reuse, int expectedType) throws IOException Read message from server into to the given
| |
| resetMessageSequence | back to summary |
|---|---|
| public default void resetMessageSequence() Set stored message sequence number to 0. | |
| skipPacket | back to summary |
|---|---|
| public default void skipPacket() throws IOException Skips the next packet, or the current one if previously probed, by reading and discarding it.
| |
| start | back to summary |
|---|---|
| public default void start() Start reading messages reader from the provided channel. | |
| stopAfterNextMessage | back to summary |
|---|---|
| public default void stopAfterNextMessage() Signal to the reader that it should stop reading messages after reading the next message. | |
| undecorate | back to summary |
|---|---|
| public default MessageReader Return the previous MessageReader instance from the decorators chain or the current MessageReader if it is the first entry in a chain.
| |
| undecorateAll | back to summary |
|---|---|
| public default MessageReader Return a MessageReader instance free of decorators.
| |