public abstract class AbstractReference extends net.openhft.chronicle.core.io.AbstractCloseable implements Byteable, net.openhft.chronicle.core.io.Closeable
Modifier and Type | Field and Description |
---|---|
protected @Nullable BytesStore<?,?> |
bytes |
protected long |
offset |
Constructor and Description |
---|
AbstractReference() |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptNewBytesStore(@NotNull BytesStore bytes) |
long |
address() |
@Nullable BytesStore |
bytesStore() |
void |
bytesStore(@NotNull BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
FileLock |
lock(boolean shared)
Calls lock on the underlying file
|
abstract long |
maxSize() |
long |
offset() |
protected void |
performClose() |
protected boolean |
threadSafetyCheck(boolean isUsed) |
FileLock |
tryLock(boolean shared)
Calls lock on the underlying file
|
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, toString, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, closeQuietly, closeQuietly, notifyClosing, warnAndCloseIfNotClosed
@Nullable protected @Nullable BytesStore<?,?> bytes
protected long offset
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalStateException, IllegalArgumentException, BufferOverflowException
Byteable
bytesStore
in interface Byteable
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreIllegalStateException
IllegalArgumentException
BufferOverflowException
@Nullable public @Nullable BytesStore bytesStore()
bytesStore
in interface Byteable
public abstract long maxSize()
protected void acceptNewBytesStore(@NotNull @NotNull BytesStore bytes) throws IllegalStateException
IllegalStateException
protected void performClose() throws IllegalStateException
performClose
in class net.openhft.chronicle.core.io.AbstractCloseable
IllegalStateException
public long address() throws IllegalStateException, BufferUnderflowException
protected boolean threadSafetyCheck(boolean isUsed)
threadSafetyCheck
in class net.openhft.chronicle.core.io.AbstractCloseable
public FileLock lock(boolean shared) throws IOException
Byteable
lock
in interface Byteable
shared
- if the lock is shared or not.IOException
public FileLock tryLock(boolean shared) throws IOException
Byteable
tryLock
in interface Byteable
shared
- if the lock is shared or not.IOException
Copyright © 2021. All rights reserved.