|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.geosolutions.concurrent.CachedTileImpl
public final class CachedTileImpl
This class is used by ConcurrentTileCache to create an object that includes all the information associated with a tile, and is put into the cache.
Constructor Summary | |
---|---|
CachedTileImpl(RenderedImage owner,
int tileX,
int tileY,
Raster tile,
Object tileCacheMetric)
Constructor that takes a tile cache metric |
Method Summary | |
---|---|
int |
getAction()
Returns information about the status of the tile |
Object |
getImageKey()
Returns the key associate to the tile owner |
Object |
getKey()
Returns the key associated to the tile. |
RenderedImage |
getOwner()
Returns the owner of the cached tile. |
Raster |
getTile()
Returns the value of the cached tile. |
Object |
getTileCacheMetric()
Returns the tileCacheMetric object |
long |
getTileSize()
Returns the tile memory size |
long |
getTileTimeStamp()
Returns the current time stamp |
static Object |
hashKey(RenderedImage owner)
Returns the hash table "key" as a Object for this image. |
static Object |
hashKey(RenderedImage owner,
int tileX,
int tileY)
Returns the hash table "key" as a Object for this tile. |
void |
setAction(ConcurrentTileCache.Actions newAction)
Sets the status of the tile |
void |
updateTileTimeStamp()
Sets the timestamp to the new current value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedTileImpl(RenderedImage owner, int tileX, int tileY, Raster tile, Object tileCacheMetric)
Method Detail |
---|
public Object getKey()
public Object getImageKey()
public static Object hashKey(RenderedImage owner, int tileX, int tileY)
Object
for this tile.
public static Object hashKey(RenderedImage owner)
Object
for this image.
public Raster getTile()
getTile
in interface javax.media.jai.CachedTile
public RenderedImage getOwner()
getOwner
in interface javax.media.jai.CachedTile
public long getTileTimeStamp()
getTileTimeStamp
in interface javax.media.jai.CachedTile
public Object getTileCacheMetric()
getTileCacheMetric
in interface javax.media.jai.CachedTile
public long getTileSize()
getTileSize
in interface javax.media.jai.CachedTile
public int getAction()
getAction
in interface javax.media.jai.CachedTile
public void setAction(ConcurrentTileCache.Actions newAction)
public void updateTileTimeStamp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |