|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.ObjectCaches
public final class ObjectCaches
This is facade around several constructs used by GeoTools for internal caching.
This class provides the following services:
ObjectCache
.
Method Summary | |
---|---|
static ObjectCache |
chain(ObjectCache level1,
ObjectCache level2)
Create a two level cache, operates as a level1 cache that is willing to obtain values from a (usually shared) level2 cache. |
static ObjectCache |
create(Hints hints)
Utility method used to produce cache based on provide Hint |
static ObjectCache |
create(java.lang.String policy,
int size)
Utility method used to produce an ObjectCache. |
static java.lang.String |
toKey(org.opengis.metadata.citation.Citation citation,
java.lang.String code)
Produce a good key based on the privided citaiton and code. |
static java.lang.Object |
toKey(org.opengis.metadata.citation.Citation citation,
java.lang.String code1,
java.lang.String code2)
Produce a good key based on a pair of codes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ObjectCache chain(ObjectCache level1, ObjectCache level2)
This functionality is used to tie two ObjectCache implementations together
(allowing them to collaborate while focusing on different use cases).
The real world example of chaining is in AbstractFindableAuthorityFactory
in which:
level1
- level2
-
public static ObjectCache create(Hints hints) throws FactoryRegistryException
FactoryRegistryException
public static ObjectCache create(java.lang.String policy, int size)
policy
- One of "weak", "all", "none", "soft"size
- Used to indicate requested size, exact use depends on policy
Hints.BUFFER_POLICY
public static java.lang.String toKey(org.opengis.metadata.citation.Citation citation, java.lang.String code)
code
- Code
public static java.lang.Object toKey(org.opengis.metadata.citation.Citation citation, java.lang.String code1, java.lang.String code2)
code1
- code2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |