| Package | Description |
|---|---|
| net.openhft.chronicle.core.io |
The resource management package provides classes and interfaces for managing the lifecycle of
resources such as files, streams, and memory buffers.
|
| Modifier and Type | Method and Description |
|---|---|
long |
UnsafeCloseable.addAtomicLong(long delta)
Adds the specified value to the long value stored at the memory address and returns the updated value.
|
long |
UnsafeCloseable.addLong(long delta)
Adds the specified value to the long value stored at the memory address and returns the updated value.
|
boolean |
UnsafeCloseable.compareAndSwapLong(long expected,
long value)
Compares the value at the memory address with the expected value and, if they match, sets the value to a new value.
|
long |
UnsafeCloseable.getLong()
Gets the long value stored at the memory address.
|
long |
UnsafeCloseable.getVolatileLong()
Gets the volatile long value stored at the memory address.
|
void |
AbstractCloseableReferenceCounted.reserve(ReferenceOwner id)
Attempts to reserve the resource for the given unique id.
|
void |
AbstractReferenceCounted.reserve(ReferenceOwner id)
Increments the reference count by one, indicating that the resource is now shared among multiple owners.
|
void |
ReferenceCounted.reserve(ReferenceOwner id)
Reserves the resource by incrementing its reference count by one.
|
void |
AbstractCloseableReferenceCounted.reserveTransfer(ReferenceOwner from,
ReferenceOwner to)
Reserves the resource for the given id.
|
void |
AbstractReferenceCounted.reserveTransfer(ReferenceOwner from,
ReferenceOwner to)
Transfers a reference from one owner to another.
|
default void |
ReferenceCounted.reserveTransfer(ReferenceOwner from,
ReferenceOwner to)
Atomically transfers a reservation from one owner to another by incrementing the reference
count for the new owner and decrementing it for the old owner.
|
void |
UnsafeCloseable.setLong(long value)
Sets the long value at the memory address.
|
void |
UnsafeCloseable.setOrderedLong(long value)
Sets the ordered long value at the memory address.
|
void |
UnsafeCloseable.setVolatileLong(long value)
Sets the volatile long value at the memory address.
|
protected void |
AbstractCloseable.threadSafetyCheck(boolean isUsed)
Performs a thread safety check on the component.
|
protected boolean |
AbstractReferenceCounted.threadSafetyCheck(boolean isUsed) |
default void |
ManagedCloseable.throwExceptionIfClosed()
Throws an exception if the resource is closed or in the process of closing.
|
void |
AbstractCloseable.throwExceptionIfClosed()
Throws an exception if the resource is closed.
|
void |
AbstractCloseableReferenceCounted.throwExceptionIfClosed()
Throws an exception if the resource is closed.
|
void |
AbstractCloseable.throwExceptionIfClosedInSetter()
Throws an exception if the resource is closed during a setter operation.
|
protected void |
AbstractCloseableReferenceCounted.throwExceptionIfClosedInSetter()
Throws an exception if the resource is closed while in a setter method.
|
Copyright © 2024. All rights reserved.