public class SingleTableStore<T extends Metadata> extends net.openhft.chronicle.core.io.AbstractCloseable implements TableStore<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
SUFFIX |
| Modifier and Type | Method and Description |
|---|---|
net.openhft.chronicle.core.values.LongValue |
acquireValueFor(CharSequence key,
long defaultValue) |
@NotNull net.openhft.chronicle.bytes.MappedBytes |
bytes() |
static <T,R> R |
doWithExclusiveLock(@NotNull File file,
@NotNull Function<T,? extends R> code,
@NotNull Supplier<T> target) |
<R> R |
doWithExclusiveLock(@NotNull Function<TableStore<T>,? extends R> code)
Acquires file-system level lock on the underlying file, to prevent concurrent access from multiple processes.
|
static <T,R> R |
doWithSharedLock(@NotNull File file,
@NotNull Function<T,? extends R> code,
@NotNull Supplier<T> target) |
@NotNull String |
dump() |
String |
dump(net.openhft.chronicle.wire.WireType wireType) |
@NotNull File |
file() |
<T> void |
forEachKey(T accumulator,
TableStoreIterator<T> tsIterator) |
T |
metadata() |
protected void |
performClose() |
@NotNull String |
shortDump() |
@NotNull String |
toString() |
void |
writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut wire) |
assertCloseable, assertCloseablesClosed, close, createdHere, disableCloseableTracing, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacquireValueFor, readOnlybinaryLengthLength, writeValueusesSelfDescribingMessagecreatedHere, throwExceptionIfClosed, warnAndCloseIfNotClosedclose, closeQuietly, closeQuietlypublic static final String SUFFIX
public static <T,R> R doWithSharedLock(@NotNull
@NotNull File file,
@NotNull
@NotNull Function<T,? extends R> code,
@NotNull
@NotNull Supplier<T> target)
public static <T,R> R doWithExclusiveLock(@NotNull
@NotNull File file,
@NotNull
@NotNull Function<T,? extends R> code,
@NotNull
@NotNull Supplier<T> target)
@NotNull public @NotNull File file()
file in interface CommonStore@NotNull public @NotNull String dump()
dump in interface CommonStorepublic String dump(net.openhft.chronicle.wire.WireType wireType)
dump in interface CommonStore@NotNull public @NotNull String shortDump()
shortDump in interface CommonStoreprotected void performClose()
performClose in class net.openhft.chronicle.core.io.AbstractCloseable@NotNull public @NotNull net.openhft.chronicle.bytes.MappedBytes bytes()
bytes in interface CommonStore@NotNull public @NotNull String toString()
toString in class net.openhft.chronicle.core.io.AbstractCloseablepublic void writeMarshallable(@NotNull
@NotNull net.openhft.chronicle.wire.WireOut wire)
writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallablepublic net.openhft.chronicle.core.values.LongValue acquireValueFor(CharSequence key, long defaultValue)
acquireValueFor in interface TableStore<T extends Metadata>public <T> void forEachKey(T accumulator,
TableStoreIterator<T> tsIterator)
forEachKey in interface TableStore<T extends Metadata>public <R> R doWithExclusiveLock(@NotNull
@NotNull Function<TableStore<T>,? extends R> code)
TableStoreTableStore.acquireValueFor(CharSequence) calls, to atomically acquire
multiple values.doWithExclusiveLock in interface TableStore<T extends Metadata>R - result typecode - code block to execute using locked table storepublic T metadata()
metadata in interface TableStore<T extends Metadata>Copyright © 2024. All rights reserved.