Uses of Interface
edu.iu.UnsafeRunnable
Packages that use UnsafeRunnable
Package
Description
Includes basic Java utilities classes and interfaces.
Database connection pooling utilities.
Type introspection base utilities.
Type Introspection Implementation Module.
-
Uses of UnsafeRunnable in edu.iu
Methods in edu.iu with parameters of type UnsafeRunnableModifier and TypeMethodDescriptionstatic void
IuException.checked
(UnsafeRunnable runnable) Gracefully runs anUnsafeRunnable
.static <T extends Exception>
voidIuException.checked
(Class<T> expectedExceptionClass, UnsafeRunnable runnable) Gracefully runs anUnsafeRunnable
.IuException.checked
(Class<T1> expectedExceptionClass1, Class<T2> expectedExceptionClass2, UnsafeRunnable runnable) Gracefully runs anUnsafeRunnable
.IuException.checked
(Class<T1> expectedExceptionClass1, Class<T2> expectedExceptionClass2, Class<T3> expectedExceptionClass3, UnsafeRunnable runnable) Gracefully runs anUnsafeRunnable
.static void
IuUtilityTaskController.doBefore
(UnsafeRunnable task, Instant expires) Runs a utility task.static void
IuException.suppress
(UnsafeRunnable... tasks) Runs a sequence of tasks with error suppression.static Throwable
IuException.suppress
(Throwable throwable, UnsafeRunnable runnable) Runs anUnsafeRunnable
and adds any exception thrown as suppressed by an another exception.static void
IuException.unchecked
(UnsafeRunnable runnable) Gracefully runs anUnsafeRunnable
.static void
IuException.unchecked
(UnsafeRunnable runnable, String message) Gracefully runs anUnsafeRunnable
.Method parameters in edu.iu with type arguments of type UnsafeRunnableModifier and TypeMethodDescriptionstatic void
IuException.suppress
(Iterable<UnsafeRunnable> tasks) Runs a sequence of tasks with error suppression.Constructors in edu.iu with parameters of type UnsafeRunnableModifierConstructorDescriptionIuCachedValue
(V value, Duration timeToLive, UnsafeRunnable onExpire) Constructor. -
Uses of UnsafeRunnable in edu.iu.jdbc.pool
Methods in edu.iu.jdbc.pool with parameters of type UnsafeRunnableModifier and TypeMethodDescriptionvoid
IuCommonDataSource.setOnClose
(UnsafeRunnable onClose) Sets an optional shutdown hook to be invoked fromIuCommonDataSource.close()
after all physical connections managed by the pool have been closed.Constructor parameters in edu.iu.jdbc.pool with type arguments of type UnsafeRunnableModifierConstructorDescriptionIuStatementHandler
(String sql, PreparedStatement statement, UnsafeBiConsumer<UnsafeRunnable, Throwable> closeHandler) Constructor. -
Uses of UnsafeRunnable in edu.iu.type.base
Methods in edu.iu.type.base that return UnsafeRunnableModifier and TypeMethodDescriptionstatic UnsafeRunnable
TemporaryFile.init
(UnsafeRunnable task) Tracks temp files created by an initialization task, and either deletes all created if an error is thrown, or returns a thunk that may be used to deletes all files on teardown.Methods in edu.iu.type.base with parameters of type UnsafeRunnableModifier and TypeMethodDescriptionstatic UnsafeRunnable
TemporaryFile.init
(UnsafeRunnable task) Tracks temp files created by an initialization task, and either deletes all created if an error is thrown, or returns a thunk that may be used to deletes all files on teardown. -
Uses of UnsafeRunnable in iu.type
Methods in iu.type with parameters of type UnsafeRunnableModifier and TypeMethodDescription(package private) static void
TypeUtils.callWithContext
(ClassLoader contextLoader, UnsafeRunnable runnable) Invokes anUnsafeRunnable
using a specific context class loader.(package private) static Component
ComponentFactory.createModular
(Component parent, ClassLoader parentLoader, ModuleLayer parentLayer, Iterable<ComponentArchive> archives, Consumer<ModuleLayer.Controller> controllerCallback, UnsafeRunnable destroy) Creates a modular component.Constructors in iu.type with parameters of type UnsafeRunnableModifierConstructorDescription(package private)
Component
(Component parent, ClassLoader classLoader, ModuleLayer moduleLayer, Iterable<ComponentArchive> archives, UnsafeRunnable onClose) Constructor for use fromComponentFactory
.