public class TileCache extends com.google.common.cache.CacheLoader<TileRequest,Tile> implements com.google.common.cache.Weigher<TileRequest,Tile>
Modifier and Type | Field and Description |
---|---|
int |
concurrency |
int |
size |
Modifier and Type | Method and Description |
---|---|
Tile |
get(TileRequest req)
delegate to the tile LoadingCache
|
Tile |
load(TileRequest req) |
int |
weigh(TileRequest req,
Tile tile) |
public TileCache(Graph graph)
public Tile load(TileRequest req) throws Exception
load
in class com.google.common.cache.CacheLoader<TileRequest,Tile>
Exception
public Tile get(TileRequest req) throws Exception
Exception
public int weigh(TileRequest req, Tile tile)
weigh
in interface com.google.common.cache.Weigher<TileRequest,Tile>
Copyright © 2018. All rights reserved.