|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.image.ImageRepository
A caching repository of image peers.
Field Summary | |
private static int |
CACHE_SIZE
|
private int |
currentRecencyValue
|
private InstancePeer |
instancePeer
|
private static int |
REDUCTION_SIZE
|
private java.util.Map |
ref2peer
|
Constructor Summary | |
ImageRepository(InstancePeer instancePeer)
Creates a new ImageRepository . |
Method Summary | |
ImagePeer |
getImagePeer(nextapp.echo.ImageReference imageRef)
Returns an image peer for the specified image. |
private ImagePeer |
loadPeer(nextapp.echo.ImageReference imageRef)
Retreives an image peer from the cache for the specified image. |
private void |
reduce()
Reduces the number of cached image peers by removing those that have not been used recently. |
private void |
storePeer(nextapp.echo.ImageReference imageRef,
ImagePeer peer)
Stores an image peer in the cache for the specifeid image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int CACHE_SIZE
private static final int REDUCTION_SIZE
private transient java.util.Map ref2peer
private transient int currentRecencyValue
private InstancePeer instancePeer
Constructor Detail |
public ImageRepository(InstancePeer instancePeer)
ImageRepository
.
Method Detail |
public ImagePeer getImagePeer(nextapp.echo.ImageReference imageRef)
imageRef
- The image for which to return a peer.
private ImagePeer loadPeer(nextapp.echo.ImageReference imageRef)
imageRef
- The image for which to return a peer.
private void reduce()
private void storePeer(nextapp.echo.ImageReference imageRef, ImagePeer peer)
imageRef
- The image reference whose peer is to be stored.peer
- The image reference's peer.
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |