jautil.avatar
Class AvatarsMemCache

java.lang.Object
  extended by jautil.avatar.AvatarsMemCache

public class AvatarsMemCache
extends java.lang.Object

In-memory cache of avatar data files.


Constructor Summary
AvatarsMemCache(AvatarConfigDataset acdata)
          Constructs a new in-memory avatar data cache, supported by the given avatar configuration dataset.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarsMemCache

public AvatarsMemCache(AvatarConfigDataset acdata)
Constructs a new in-memory avatar data cache, supported by the given avatar configuration dataset.

Method Detail

isAvailable

public boolean isAvailable(java.lang.String av)
Tests whether this cache has an entry for the given avatar.


isLocallyAvailable

public 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.


getAccess

public 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.


terminateAccess

public 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.