public class TextReadDocumentContext extends Object implements ReadDocumentContext
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.bytes.BytesStore |
MSG_SEP |
protected boolean |
notComplete |
protected boolean |
present |
protected TextWire |
wire |
| Constructor and Description |
|---|
TextReadDocumentContext(TextWire wire) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeReadLimit(long readLimit) |
void |
closeReadPosition(long readPosition) |
long |
index()
Index last read, only available for read contexts.
|
boolean |
isMetaData() |
boolean |
isNotComplete() |
boolean |
isPresent() |
void |
metaData(boolean metaData)
Set the metaData flag.
|
int |
sourceId() |
void |
start() |
String |
toString() |
Wire |
wire() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisData, rollbackOnClosepublic static final net.openhft.chronicle.bytes.BytesStore MSG_SEP
@Nullable protected TextWire wire
protected boolean present
protected boolean notComplete
public TextReadDocumentContext(@Nullable
TextWire wire)
public boolean isMetaData()
isMetaData in interface DocumentContextpublic void metaData(boolean metaData)
DocumentContextmetaData in interface DocumentContextmetaData - write as metaData instead of data if true.public boolean isPresent()
isPresent in interface DocumentContextpublic void closeReadPosition(long readPosition)
closeReadPosition in interface ReadDocumentContextpublic void closeReadLimit(long readLimit)
closeReadLimit in interface ReadDocumentContext@Nullable public Wire wire()
wire in interface DocumentContextpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void start()
start in interface ReadDocumentContextpublic long index()
SourceContextindex in interface SourceContextpublic int sourceId()
sourceId in interface SourceContextpublic boolean isNotComplete()
isNotComplete in interface DocumentContextCopyright © 2018. All rights reserved.