public abstract class WrappedDocumentContext extends Object implements DocumentContext
NOOP| Modifier | Constructor and Description |
|---|---|
protected |
WrappedDocumentContext(DocumentContext dc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DocumentContext |
dc() |
WrappedDocumentContext |
dc(DocumentContext dc) |
long |
index()
Index last read, only available for read contexts.
|
boolean |
isData()
Checks if the
DocumentContext is data. |
boolean |
isMetaData()
Checks it the
DocumentContext is metadata. |
boolean |
isNotComplete() |
boolean |
isPresent()
Checks if the
DocumentContext is present. |
void |
rollbackOnClose()
Call this if you have detected an error condition and you want the context
rolled back when it is closed, rather than half a message committed
|
int |
sourceId()
Returns the source id of this source context.
|
@Nullable Wire |
wire()
Returns the
Wire associated with the Document. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOpen, resetprotected WrappedDocumentContext(DocumentContext dc)
public DocumentContext dc()
public WrappedDocumentContext dc(DocumentContext dc)
public boolean isMetaData()
DocumentContextDocumentContext is metadata. If it is, true is
returned, otherwise false.isMetaData in interface DocumentContextpublic boolean isPresent()
DocumentContextDocumentContext is present. If it is, true is returned,
otherwise false.isPresent in interface DocumentContext@Nullable public @Nullable Wire wire()
DocumentContextWire associated with the Document. It is possible that
null is returned, depending on the implementation.wire in interface DocumentContextWire associated with the Document.public boolean isNotComplete()
isNotComplete in interface DocumentContextpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface DocumentContextpublic int sourceId()
SourceContextsourceId in interface SourceContextpublic long index()
throws net.openhft.chronicle.core.io.IORuntimeException
SourceContextindex in interface SourceContextnet.openhft.chronicle.core.io.IORuntimeException - if an error occurred while getting the indexpublic boolean isData()
DocumentContextDocumentContext is data. If it is, true is returned,
otherwise falseisData in interface DocumentContextpublic void rollbackOnClose()
DocumentContextrollbackOnClose in interface DocumentContextCopyright © 2023. All rights reserved.