public interface ReferenceCounted extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Doesn't throw a checked exception.
|
long |
refCount() |
void |
release() |
static void |
release(Object o) |
static void |
releaseAll(List<WeakReference<ReferenceCounted>> refCounts) |
void |
reserve() |
default boolean |
tryReserve() |
closeQuietlystatic void releaseAll(List<WeakReference<ReferenceCounted>> refCounts)
void reserve()
throws IllegalStateException
IllegalStateExceptionvoid release()
throws IllegalStateException
IllegalStateExceptionstatic void release(Object o) throws IllegalStateException
IllegalStateExceptiondefault void close()
Closeableclose in interface AutoCloseableclose in interface Closeablelong refCount()
default boolean tryReserve()
Copyright © 2015. All rights reserved.