Class FunctionCacheEntry
- java.lang.Object
-
- org.apache.pulsar.functions.utils.functioncache.FunctionCacheEntry
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class FunctionCacheEntry extends java.lang.Object implements java.lang.AutoCloseableA 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 Modifier and Type Field Description static java.lang.StringJAVA_INSTANCE_JAR_PROPERTY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidregister(java.lang.String eid, java.util.Collection<java.lang.String> requiredJarFiles, java.util.Collection<java.net.URL> requiredClassPaths)booleanunregister(java.lang.String eid)
-
-
-
Field Detail
-
JAVA_INSTANCE_JAR_PROPERTY
public static final java.lang.String JAVA_INSTANCE_JAR_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
register
public void register(java.lang.String eid, java.util.Collection<java.lang.String> requiredJarFiles, java.util.Collection<java.net.URL> requiredClassPaths)
-
unregister
public boolean unregister(java.lang.String eid)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-