public final class ReferenceCountedUtil extends Object
ReferenceCounted instances.
Provides methods to verify whether a ReferenceCounted instance or any object
that implements ReferenceCounted has been previously released.
This class is not intended to be instantiated.
| Modifier and Type | Method and Description |
|---|---|
static void |
throwExceptionIfReleased(Object object)
Checks the provided
object throwing a ClosedIllegalStateException If it implements
ReferenceCounted AND has been previously released. |
static void |
throwExceptionIfReleased(net.openhft.chronicle.core.io.ReferenceCounted referenceCounted)
Checks the provided
referenceCounted throwing a ClosedIllegalStateException If it has been previously released. |
public static void throwExceptionIfReleased(net.openhft.chronicle.core.io.ReferenceCounted referenceCounted)
throws net.openhft.chronicle.core.io.ClosedIllegalStateException
referenceCounted throwing a ClosedIllegalStateException If it has been previously released.referenceCounted - the non-null ReferenceCounted resource to checknet.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.NullPointerException - If the provided referenceCounted is nullpublic static void throwExceptionIfReleased(Object object) throws net.openhft.chronicle.core.io.ClosedIllegalStateException
object throwing a ClosedIllegalStateException If it implements
ReferenceCounted AND has been previously released.object - the non-null object to checknet.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.NullPointerException - If the provided object is nullCopyright © 2023. All rights reserved.