| 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.
|
long |
UnsafeCloseable.getVolatileLong(long closedLong)
Gets the volatile long value stored at the memory address, or a default value if the resource is closed.
|
void |
TracingReferenceCounted.release(ReferenceOwner id) |
void |
AbstractCloseableReferenceCounted.release(ReferenceOwner id)
Releases the resource for the given id.
|
void |
AbstractReferenceCounted.release(ReferenceOwner id)
Decrements the reference count by one.
|
void |
VanillaReferenceCounted.release(ReferenceOwner id)
Releases the resource reserved by the provided reference owner.
|
void |
ReferenceCounted.release(ReferenceOwner id)
Releases the resource by decrementing its reference count by one.
|
default void |
ReferenceCounted.releaseLast()
Releases the resource for the initial owner and ensures that this release is the last usage of the resource.
|
void |
AbstractCloseableReferenceCounted.releaseLast(ReferenceOwner id)
Releases the resource for the given id and checks the resource is now released.
|
void |
AbstractReferenceCounted.releaseLast(ReferenceOwner id)
Releases the last reference to the resource.
|
void |
ReferenceCounted.releaseLast(ReferenceOwner id)
Releases the resource and ensures that this release is the last usage of the resource.
|
void |
TracingReferenceCounted.reserve(ReferenceOwner id) |
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 |
VanillaReferenceCounted.reserve(ReferenceOwner id)
Reserves the resource for the provided reference owner.
|
void |
ReferenceCounted.reserve(ReferenceOwner id)
Reserves the resource by incrementing its reference count by one.
|
void |
TracingReferenceCounted.reserveTransfer(ReferenceOwner from,
ReferenceOwner to) |
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.
|
void |
VanillaReferenceCounted.reserveTransfer(ReferenceOwner from,
ReferenceOwner to)
Transfers the reservation of the resource from one reference 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.
|
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.
|
void |
TracingReferenceCounted.throwExceptionIfReleased() |
default void |
ReferenceCountedTracer.throwExceptionIfReleased()
Throws an exception if the object has been released.
|
void |
AbstractReferenceCounted.throwExceptionIfReleased()
Throws an exception if the resource has been released.
|
boolean |
TracingReferenceCounted.tryReserve(ReferenceOwner id) |
boolean |
AbstractCloseableReferenceCounted.tryReserve(ReferenceOwner id)
Tries to reserve the resource for the given id.
|
boolean |
AbstractReferenceCounted.tryReserve(ReferenceOwner id)
Attempts to reserve the resource without throwing an exception if it is already released.
|
boolean |
ReferenceCounted.tryReserve(ReferenceOwner id)
Attempts to reserve the resource and returns
true if successful. |
void |
ReferenceCountedTracer.warnAndReleaseIfNotReleased()
Releases any remaining references and logs a warning if there were any references to release.
|
Copyright © 2024. All rights reserved.