public class AvatarsMemCache
extends java.lang.Object
Constructor and Description |
---|
AvatarsMemCache(AvatarConfigDataset acdata)
Constructs a new in-memory avatar data cache,
supported by the given avatar configuration dataset.
|
Modifier and Type | Method and Description |
---|---|
AvatarAccess |
getAccess(java.lang.String av)
Ensures that this cache has an entry for the given avatar, by
loading the entry if necessary, and returns the entry.
|
boolean |
isAvailable(java.lang.String av)
Tests whether this cache has an entry for the given avatar.
|
boolean |
isLocallyAvailable(java.lang.String av)
Tests whether the access entry for the given entry is available
on the local system, either in primary or in secondary memory.
|
void |
terminateAccess(java.lang.String av)
If this cache has an entry for the given avatar then that access
entry is terminated and removed from the cache.
|
public AvatarsMemCache(AvatarConfigDataset acdata)
public boolean isAvailable(java.lang.String av)
public boolean isLocallyAvailable(java.lang.String av)
public AvatarAccess getAccess(java.lang.String av)
public void terminateAccess(java.lang.String av)