public class TimedResourceCache<Key,Value extends TimedResource>
extends java.lang.Object
Constructor and Description |
---|
TimedResourceCache() |
TimedResourceCache(int lifespan,
int sleepinterval) |
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
getKeys() |
int |
getLifeSpan() |
TimedResource |
getResource(Key K) |
int |
getSleepinterval() |
void |
putResource(Key K,
Value V) |
void |
releaseResource(Key K) |
void |
setLifeSpan(int lifespan) |
void |
setSleepInterval(int sleepInterval) |
public TimedResourceCache()
public TimedResourceCache(int lifespan, int sleepinterval)
public TimedResource getResource(Key K)
public void releaseResource(Key K)
public java.util.Enumeration getKeys()
public int getSleepinterval()
public void setSleepInterval(int sleepInterval)
public int getLifeSpan()
public void setLifeSpan(int lifespan)