public class MappedFile extends Object implements net.openhft.chronicle.core.ReferenceCounted
| Modifier and Type | Method and Description |
|---|---|
Bytes |
acquireBytesForRead(long position)
Convenience method so you don't need to release the BytesStore
|
void |
acquireBytesForRead(long position,
VanillaBytes bytes) |
Bytes |
acquireBytesForWrite(long position) |
void |
acquireBytesForWrite(long position,
VanillaBytes bytes) |
MappedBytesStore |
acquireByteStore(long position) |
<T extends MappedBytesStore> |
acquireByteStore(long position,
MappedBytesStoreFactory<T> mappedBytesStoreFactory) |
long |
capacity() |
void |
close() |
static MappedFile |
mappedFile(File file,
long chunkSize) |
static MappedFile |
mappedFile(File file,
long chunkSize,
long overlapSize) |
static MappedFile |
mappedFile(String filename,
long chunkSize) |
static MappedFile |
mappedFile(String filename,
long chunkSize,
long overlapSize) |
long |
refCount() |
String |
referenceCounts() |
void |
release() |
void |
reserve() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@NotNull public static MappedFile mappedFile(@NotNull File file, long chunkSize) throws FileNotFoundException
FileNotFoundException@NotNull public static MappedFile mappedFile(@NotNull String filename, long chunkSize) throws FileNotFoundException
FileNotFoundException@NotNull public static MappedFile mappedFile(@NotNull String filename, long chunkSize, long overlapSize) throws FileNotFoundException
FileNotFoundException@NotNull public static MappedFile mappedFile(@NotNull File file, long chunkSize, long overlapSize) throws FileNotFoundException
FileNotFoundException@Nullable public MappedBytesStore acquireByteStore(long position) throws IOException, IllegalArgumentException, IllegalStateException
@Nullable public <T extends MappedBytesStore> T acquireByteStore(long position, MappedBytesStoreFactory<T> mappedBytesStoreFactory) throws IOException, IllegalArgumentException, IllegalStateException
public Bytes acquireBytesForRead(long position) throws IOException, IllegalStateException, IllegalArgumentException
public void acquireBytesForRead(long position,
@NotNull
VanillaBytes bytes)
throws IOException,
IllegalStateException,
IllegalArgumentException
public Bytes acquireBytesForWrite(long position) throws IOException, IllegalStateException, IllegalArgumentException
public void acquireBytesForWrite(long position,
@NotNull
VanillaBytes bytes)
throws IOException,
IllegalStateException,
IllegalArgumentException
public void reserve()
throws IllegalStateException
reserve in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateExceptionpublic void release()
throws IllegalStateException
release in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateExceptionpublic long refCount()
refCount in interface net.openhft.chronicle.core.ReferenceCountedpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface net.openhft.chronicle.core.ReferenceCounted@NotNull public String referenceCounts()
public long capacity()
Copyright © 2015. All rights reserved.