public abstract class ManagedResource<T> extends Object implements GraphicsResource
Modifier | Constructor and Description |
---|---|
protected |
ManagedResource(T resource,
ResourcePool<T> pool) |
Modifier and Type | Method and Description |
---|---|
void |
assertLocked() |
void |
bumpAge(int forever) |
void |
contentsNotUseful() |
void |
contentsUseful() |
void |
dispose() |
void |
free() |
int |
getAge() |
int |
getInterestCount() |
int |
getLockCount() |
ResourcePool<T> |
getPool() |
T |
getResource() |
boolean |
isDisposalRequested() |
boolean |
isInteresting() |
boolean |
isLocked() |
boolean |
isPermanent() |
boolean |
isValid() |
T |
lock() |
void |
makePermanent() |
void |
setMismatched() |
void |
unlock() |
boolean |
wasMismatched() |
protected T resource
protected ManagedResource(T resource, ResourcePool<T> pool)
public final T getResource()
public final ResourcePool<T> getPool()
public boolean isValid()
public boolean isDisposalRequested()
public final boolean isLocked()
public final int getLockCount()
public final void assertLocked()
public final boolean isPermanent()
public final boolean isInteresting()
public final int getInterestCount()
public void free()
public int getAge()
public final void dispose()
dispose
in interface GraphicsResource
public final void makePermanent()
public final T lock()
public final void unlock()
public final void contentsUseful()
public final void contentsNotUseful()
public final boolean wasMismatched()
public final void setMismatched()
public final void bumpAge(int forever)
Copyright © 2020. All rights reserved.