@FunctionalInterface public interface MappedBytesStoreFactory
MappedBytesStore.
This interface is meant to be implemented by classes that can create MappedBytesStore instances based on provided parameters.
| Modifier and Type | Method and Description |
|---|---|
@NotNull MappedBytesStore |
create(net.openhft.chronicle.core.io.ReferenceOwner owner,
MappedFile mappedFile,
long start,
long address,
long capacity,
long safeCapacity,
int pageSize)
Creates a
MappedBytesStore instance with the given parameters. |
@NotNull @NotNull MappedBytesStore create(net.openhft.chronicle.core.io.ReferenceOwner owner, MappedFile mappedFile, long start, long address, long capacity, long safeCapacity, int pageSize) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
MappedBytesStore instance with the given parameters.owner - The owner of the MappedBytesStore to be created.mappedFile - The MappedFile to be wrapped by the created BytesStore.start - The start position within the MappedFile.address - The memory address of the mapped data.capacity - The capacity of the mapped data.safeCapacity - The safe capacity of the mapped data. Accessing data beyond the safe capacity might lead to a crash.pageSize - Page size to use to check alignmentnet.openhft.chronicle.core.io.ClosedIllegalStateException - If the MappedFile has already been released.Copyright © 2024. All rights reserved.