|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.tiling.IlvTileCache
ilog.views.tiling.IlvDefaultTileCache
public class IlvDefaultTileCache
The default cache of the tile controllers.
This cache maintains a list of cached tiles. The maximum size of
this list can be specified.
When the size of the cache is exceeded and a new tile is about to
be loaded, the least recently used cached tiles are released.
| Constructor Summary | |
|---|---|
IlvDefaultTileCache()
Creates an instance of the default cache. |
|
IlvDefaultTileCache(IlvInputStream stream)
Reads a cache from an IlvInputStream. |
|
IlvDefaultTileCache(int size)
Creates an instance of the default cache with the specified size. |
|
| Method Summary | |
|---|---|
void |
controllerDisposed(IlvTileController controller)
Removes the tiles of the specified controller from the internal structure of the cache. |
int |
getCacheSize()
Returns the cache size. |
static IlvDefaultTileCache |
GetDefaultCache()
Returns a default cache instance that can be shared by several tile controllers. |
void |
setCacheSize(int size)
Sets the cache size. |
void |
tileAboutToLoad(IlvTile tile)
This method is called by a tile controller each time that a tile is about to be loaded. |
void |
tileCached(IlvTile tile)
This method is called each time a loaded tile no longer has a lock. |
void |
tileRetrieved(IlvTile tile)
This method is called each time that a cached tile is locked again. |
void |
write(IlvOutputStream stream)
Writes the cache to an IlvOutputStream. |
| Methods inherited from class ilog.views.tiling.IlvTileCache |
|---|
releaseTile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDefaultTileCache()
public IlvDefaultTileCache(int size)
size - The default cache size
public IlvDefaultTileCache(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The input stream
IlvReadFileException - if an error occurs while reading.| Method Detail |
|---|
public static IlvDefaultTileCache GetDefaultCache()
public void tileCached(IlvTile tile)
tileCached in class IlvTileCachetile - The tile to be cachedpublic void tileRetrieved(IlvTile tile)
tileRetrieved in class IlvTileCachetile - The tile that is retrieved from the cache by a tile controllerpublic void tileAboutToLoad(IlvTile tile)
tileAboutToLoad in class IlvTileCachetile - The tile that is about to be loadedpublic void controllerDisposed(IlvTileController controller)
controllerDisposed in class IlvTileCachepublic final int getCacheSize()
public void setCacheSize(int size)
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvTileCachestream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||