Package org.apache.flink.util
Interface UserCodeClassLoader
-
- All Known Implementing Classes:
SimpleUserCodeClassLoader
@PublicEvolving public interface UserCodeClassLoader
UserCodeClassLoader allows to register release hooks for a user code class loader.These release hooks are being executed just before the user code class loader is being released.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassLoader
asClassLoader()
Obtains the actual class loader.void
registerReleaseHookIfAbsent(String releaseHookName, Runnable releaseHook)
Registers a release hook which is being executed before the user code class loader is being released.
-
-
-
Method Detail
-
asClassLoader
ClassLoader asClassLoader()
Obtains the actual class loader.- Returns:
- actual class loader
-
registerReleaseHookIfAbsent
void registerReleaseHookIfAbsent(String releaseHookName, Runnable releaseHook)
Registers a release hook which is being executed before the user code class loader is being released.- Parameters:
releaseHookName
-releaseHook
- releaseHook which is executed before the user code class loader is being released.
-
-