Class FunctionCacheEntry
java.lang.Object
org.apache.pulsar.functions.utils.functioncache.FunctionCacheEntry
- All Implemented Interfaces:
AutoCloseable
A cache entry in the function cache. Tracks which workers still reference
the dependencies. Once none reference it any more, the class loaders will
be cleaned up.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidregister(String eid, Collection<String> requiredJarFiles, Collection<URL> requiredClassPaths) booleanunregister(String eid)
-
Field Details
-
JAVA_INSTANCE_JAR_PROPERTY
- See Also:
-
-
Method Details
-
register
public void register(String eid, Collection<String> requiredJarFiles, Collection<URL> requiredClassPaths) -
unregister
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-