Package io.aether.utils
Class Destroyer
- java.lang.Object
-
- io.aether.utils.Destroyer
-
- All Implemented Interfaces:
Destroyable
public class Destroyer extends java.lang.Object implements Destroyable
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description Destroyer(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Destroyable destroyable)voidadd(java.lang.AutoCloseable os)voidadd(java.util.concurrent.ScheduledFuture<?> os)AFuturedestroy(boolean force)Initiates the destruction process.booleanisDestroyed()java.lang.StringtoString()
-
-
-
Method Detail
-
isDestroyed
public boolean isDestroyed()
-
add
public void add(Destroyable destroyable)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
destroy
public AFuture destroy(boolean force)
Description copied from interface:DestroyableInitiates the destruction process.- Specified by:
destroyin interfaceDestroyable- Parameters:
force- If true, forces the destruction; otherwise, attempts a graceful shutdown.- Returns:
- An AFuture representing the result of the destruction process.
-
add
public void add(java.util.concurrent.ScheduledFuture<?> os)
-
add
public void add(java.lang.AutoCloseable os)
-
-