public static class IndexUpdaterFactory.VersionedIndexUpdater extends Object implements IndexUpdater, Closeable
Constructor and Description |
---|
VersionedIndexUpdater(@NotNull String tailerName,
@NotNull SingleChronicleQueue queue,
@NotNull net.openhft.chronicle.core.values.LongValue indexValue,
@NotNull net.openhft.chronicle.core.values.LongValue indexVersionValue) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
net.openhft.chronicle.core.values.LongValue |
index() |
void |
update(long index)
Update the persistent index of the named tailer.
|
public VersionedIndexUpdater(@NotNull @NotNull String tailerName, @NotNull @NotNull SingleChronicleQueue queue, @NotNull @NotNull net.openhft.chronicle.core.values.LongValue indexValue, @NotNull @NotNull net.openhft.chronicle.core.values.LongValue indexVersionValue)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void update(long index)
IndexUpdater
update
in interface IndexUpdater
index
- new index valuepublic net.openhft.chronicle.core.values.LongValue index()
index
in interface IndexUpdater
Copyright © 2024. All rights reserved.