Package org.apache.uima.util
Class CasCreationUtils.MetaDataCacheKey
- java.lang.Object
-
- org.apache.uima.util.CasCreationUtils.MetaDataCacheKey
-
- Enclosing class:
- CasCreationUtils
private static class CasCreationUtils.MetaDataCacheKey extends java.lang.Object
Caching of getMeta info that requires producing the resource * - done because producing the resource can be very expensive * including accessing remote things on the network * Cache is cleared approximately every 30 seconds because remote resource's statuses may change * * Cache key is the ResourceSpecifier's class loaders and the ResourceManager * Both the DataPath and the uima extension class loader are used as part of the key * because differences in these could cause different metadata to be loaded *
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ResourceSpecifier
resourceSpecifier
(package private) java.lang.ClassLoader
rmClassLoader
(package private) java.lang.String
rmDataPath
-
Constructor Summary
Constructors Constructor Description MetaDataCacheKey(ResourceSpecifier resourceSpecifier, ResourceManager resourceManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
resourceSpecifier
final ResourceSpecifier resourceSpecifier
-
rmClassLoader
final java.lang.ClassLoader rmClassLoader
-
rmDataPath
final java.lang.String rmDataPath
-
-
Constructor Detail
-
MetaDataCacheKey
MetaDataCacheKey(ResourceSpecifier resourceSpecifier, ResourceManager resourceManager)
-
-