public class WiredFile<D extends Marshallable> extends Object implements net.openhft.chronicle.core.io.Closeable
| Constructor and Description |
|---|
WiredFile(File masterFile,
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> wireType,
net.openhft.chronicle.bytes.MappedFile mappedFile,
D delegate,
net.openhft.chronicle.bytes.BytesStore headerStore,
long headerLength,
boolean headerCreated,
net.openhft.chronicle.bytes.MappedBytesStoreFactory<net.openhft.chronicle.wire.WiredFile.WiredMappedBytesStore> mappedBytesStoreFactory) |
| Modifier and Type | Method and Description |
|---|---|
Wire |
acquireWiredChunk(long position) |
static <D extends Marshallable> |
build(File masterFile,
java.util.function.Function<File,net.openhft.chronicle.bytes.MappedFile> mappedFileFunction,
WireType wireType,
java.util.function.Function<net.openhft.chronicle.bytes.MappedFile,D> delegateSupplier,
java.util.function.Consumer<WiredFile<D>> installer) |
static <D extends Marshallable> |
build(String masterFile,
java.util.function.Function<File,net.openhft.chronicle.bytes.MappedFile> toMappedFile,
WireType wireType,
java.util.function.Function<net.openhft.chronicle.bytes.MappedFile,D> delegateSupplier,
java.util.function.Consumer<WiredFile<D>> consumer) |
void |
close() |
D |
delegate() |
boolean |
headerCreated() |
long |
headerLength() |
net.openhft.chronicle.bytes.BytesStore |
headerStore() |
net.openhft.chronicle.bytes.MappedFile |
mappedFile() |
File |
masterFile() |
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> |
wireSupplier() |
public WiredFile(@NotNull
File masterFile,
@NotNull
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> wireType,
@NotNull
net.openhft.chronicle.bytes.MappedFile mappedFile,
@NotNull
D delegate,
@NotNull
net.openhft.chronicle.bytes.BytesStore headerStore,
long headerLength,
boolean headerCreated,
@NotNull
net.openhft.chronicle.bytes.MappedBytesStoreFactory<net.openhft.chronicle.wire.WiredFile.WiredMappedBytesStore> mappedBytesStoreFactory)
public static <D extends Marshallable> WiredFile<D> build(String masterFile, java.util.function.Function<File,net.openhft.chronicle.bytes.MappedFile> toMappedFile, WireType wireType, java.util.function.Function<net.openhft.chronicle.bytes.MappedFile,D> delegateSupplier, java.util.function.Consumer<WiredFile<D>> consumer)
public static <D extends Marshallable> WiredFile<D> build(File masterFile, java.util.function.Function<File,net.openhft.chronicle.bytes.MappedFile> mappedFileFunction, WireType wireType, java.util.function.Function<net.openhft.chronicle.bytes.MappedFile,D> delegateSupplier, java.util.function.Consumer<WiredFile<D>> installer)
public File masterFile()
public net.openhft.chronicle.bytes.MappedFile mappedFile()
public D delegate()
public long headerLength()
public net.openhft.chronicle.bytes.BytesStore headerStore()
public boolean headerCreated()
public java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> wireSupplier()
public Wire acquireWiredChunk(long position) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015. All rights reserved.