public interface SourceContext
It exposes the source identifier and position of the current document.
A DocumentContext may implement this interface to provide
traceability of a message to its queue index and source ID.
| Modifier and Type | Method and Description |
|---|---|
long |
index()
Obtains the index of the last read operation from this source context.
|
int |
sourceId()
Retrieves the source ID associated with this context.
|
int sourceId()
-1 if not available or not applicablelong index()
throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeException - if the index cannot be determinedCopyright © 2026 Chronicle Software Ltd. All rights reserved.