Package io.aether.utils.interfaces
Interface Destroyable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description AFuturedestroy(boolean force)Initiates the destruction process.static Destroyableof(java.lang.String name, Destroyable destroyable)Creates a new Destroyable instance with a specified name and delegate.
-
-
-
Method Detail
-
of
static Destroyable of(java.lang.String name, Destroyable destroyable)
Creates a new Destroyable instance with a specified name and delegate.- Parameters:
name- The name of the destroyable instance.destroyable- The delegate Destroyable instance whose destroy method will be called.- Returns:
- A new Destroyable instance.
-
destroy
AFuture destroy(boolean force)
Initiates the destruction process.- Parameters:
force- If true, forces the destruction; otherwise, attempts a graceful shutdown.- Returns:
- An AFuture representing the result of the destruction process.
-
-