public class ChannelReaderController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isReading |
protected Pipe<RawDataSchema> |
pipe |
| Constructor and Description |
|---|
ChannelReaderController(Pipe<RawDataSchema> pipe) |
| Modifier and Type | Method and Description |
|---|---|
ChannelReader |
beginRead()
Opens the channel reader for reading from beginning of message
|
void |
commitRead()
Move position forward.
|
boolean |
hasContentToRead()
checks if there is data on the channel
|
void |
rollback()
Restore position to the beginning, the ChannelReader is invalidated
beginRead() must be called again for another read.
|
protected final Pipe<RawDataSchema> pipe
protected boolean isReading
public ChannelReaderController(Pipe<RawDataSchema> pipe)
public boolean hasContentToRead()
public ChannelReader beginRead()
public void rollback()
public void commitRead()
Copyright © 2018. All Rights Reserved.