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 |
releaseAll(List<WeakReference<ReferenceCounted>> refCounts) |
void |
reserve() |
default boolean |
tryReserve() |
closeQuietly
static void releaseAll(List<WeakReference<ReferenceCounted>> refCounts)
void reserve() throws IllegalStateException
IllegalStateException
void release() throws IllegalStateException
IllegalStateException
default void close()
Closeable
close
in interface AutoCloseable
close
in interface Closeable
long refCount()
default boolean tryReserve()
Copyright © 2015. All rights reserved.