public static class IndexedReplicatedRecording.Indexer extends Object implements AutoCloseable, Runnable, ControlledFragmentHandler
ControlledFragmentHandler.Action
Constructor and Description |
---|
Indexer(Subscription subscription,
Publication publication,
int sessionId) |
Modifier and Type | Method and Description |
---|---|
void |
awaitPosition(long position) |
void |
close() |
long |
nextMessageIndex() |
ControlledFragmentHandler.Action |
onFragment(DirectBuffer buffer,
int offset,
int length,
Header header)
Callback for handling fragments of data being read from a log.
|
long |
position() |
void |
run() |
static Thread |
start(IndexedReplicatedRecording.Indexer indexer) |
public Indexer(Subscription subscription, Publication publication, int sessionId)
public static Thread start(IndexedReplicatedRecording.Indexer indexer)
public void close()
close
in interface AutoCloseable
public long position()
public void awaitPosition(long position)
public long nextMessageIndex()
public ControlledFragmentHandler.Action onFragment(DirectBuffer buffer, int offset, int length, Header header)
ControlledFragmentHandler
Within this callback reentrant calls to the Aeron
client are not permitted and
will result in undefined behaviour.
onFragment
in interface ControlledFragmentHandler
buffer
- containing the data.offset
- at which the data begins.length
- of the data in bytes.header
- representing the meta data for the data.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.