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, wait
isData, rollbackOnClose
public 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 DocumentContext
public void metaData(boolean metaData)
DocumentContext
metaData
in interface DocumentContext
metaData
- write as metaData instead of data if true.public boolean isPresent()
isPresent
in interface DocumentContext
public void closeReadPosition(long readPosition)
closeReadPosition
in interface ReadDocumentContext
public void closeReadLimit(long readLimit)
closeReadLimit
in interface ReadDocumentContext
@Nullable public Wire wire()
wire
in interface DocumentContext
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void start()
start
in interface ReadDocumentContext
public long index()
SourceContext
index
in interface SourceContext
public int sourceId()
sourceId
in interface SourceContext
public boolean isNotComplete()
isNotComplete
in interface DocumentContext
Copyright © 2018. All rights reserved.