public final class ReferenceCountedUtil extends Object
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)
referenceCounted
throwing a ClosedIllegalStateException if it has been previously released.referenceCounted
- non-null resource to checknet.openhft.chronicle.core.io.ClosedIllegalStateException
- if the provided referenceCounted
is releasedNullPointerException
- if the provided referenceCounted
is null
public static void throwExceptionIfReleased(Object object)
object
throwing a ClosedIllegalStateException if it implements
ReferenceCounted AND has been previously released.object
- non-null resource to checknet.openhft.chronicle.core.io.ClosedIllegalStateException
- if the provided object
is releasedNullPointerException
- if the provided object
is null
Copyright © 2022. All rights reserved.