public abstract class ReferenceResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
available |
protected boolean |
cleanupOver |
protected AtomicLong |
refCount |
| Constructor and Description |
|---|
ReferenceResource() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
cleanup(long currentRef) |
long |
getRefCount() |
boolean |
hold() |
boolean |
isAvailable() |
boolean |
isCleanupOver() |
void |
release() |
void |
shutdown(long intervalForcibly) |
protected final AtomicLong refCount
protected volatile boolean available
protected volatile boolean cleanupOver
public boolean hold()
public boolean isAvailable()
public void shutdown(long intervalForcibly)
public void release()
public long getRefCount()
public abstract boolean cleanup(long currentRef)
public boolean isCleanupOver()
Copyright © 2023. All rights reserved.