public class WiredBytes<D extends Marshallable> extends Object implements net.openhft.chronicle.core.io.Closeable
| Constructor and Description |
|---|
WiredBytes(java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> wireType,
net.openhft.chronicle.bytes.MappedBytes mappedBytes,
D delegate,
long headerLength,
boolean headerCreated) |
| Modifier and Type | Method and Description |
|---|---|
static <D extends Marshallable> |
build(File masterFile,
java.util.function.Function<File,net.openhft.chronicle.bytes.MappedBytes> mappedBytesFunction,
WireType wireType,
java.util.function.Function<net.openhft.chronicle.bytes.MappedBytes,D> delegateSupplier,
java.util.function.Consumer<WiredBytes<D>> installer) |
static <D extends Marshallable> |
build(String masterFile,
java.util.function.Function<File,net.openhft.chronicle.bytes.MappedBytes> toMappedBytes,
WireType wireType,
java.util.function.Function<net.openhft.chronicle.bytes.MappedBytes,D> delegateSupplier,
java.util.function.Consumer<WiredBytes<D>> consumer) |
void |
close() |
D |
delegate() |
boolean |
headerCreated() |
long |
headerLength() |
net.openhft.chronicle.bytes.MappedBytes |
mappedBytes() |
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> |
wireSupplier() |
public WiredBytes(@NotNull
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> wireType,
@NotNull
net.openhft.chronicle.bytes.MappedBytes mappedBytes,
@NotNull
D delegate,
long headerLength,
boolean headerCreated)
public static <D extends Marshallable> WiredBytes<D> build(String masterFile, java.util.function.Function<File,net.openhft.chronicle.bytes.MappedBytes> toMappedBytes, WireType wireType, java.util.function.Function<net.openhft.chronicle.bytes.MappedBytes,D> delegateSupplier, java.util.function.Consumer<WiredBytes<D>> consumer)
public static <D extends Marshallable> WiredBytes<D> build(File masterFile, java.util.function.Function<File,net.openhft.chronicle.bytes.MappedBytes> mappedBytesFunction, WireType wireType, java.util.function.Function<net.openhft.chronicle.bytes.MappedBytes,D> delegateSupplier, java.util.function.Consumer<WiredBytes<D>> installer)
public D delegate()
public long headerLength()
public boolean headerCreated()
public java.util.function.Function<net.openhft.chronicle.bytes.Bytes,Wire> wireSupplier()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic net.openhft.chronicle.bytes.MappedBytes mappedBytes()
Copyright © 2016. All rights reserved.