Class AsyncHandlerImpl
java.lang.Object
dev.jacrispys.JavaBot.api.libs.utils.async.AsyncHandlerImpl
- All Implemented Interfaces:
AsyncHandler
- Direct Known Subclasses:
SqlInstanceManager
Async method handler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Runs methods from themethodQueue
and checks if they have been completed.void
Continuously completes void functions that have been queued intovoidMethodQueue
-
Field Details
-
methodQueue
-
voidMethodQueue
-
-
Constructor Details
-
AsyncHandlerImpl
public AsyncHandlerImpl()
-
-
Method Details
-
completeVoid
public void completeVoid()Continuously completes void functions that have been queued intovoidMethodQueue
- Specified by:
completeVoid
in interfaceAsyncHandler
-
completeMethod
public void completeMethod()Runs methods from themethodQueue
and checks if they have been completed.- Specified by:
completeMethod
in interfaceAsyncHandler
-