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 recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRuns methods from themethodQueueand checks if they have been completed.voidContinuously 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:
completeVoidin interfaceAsyncHandler
-
completeMethod
public void completeMethod()Runs methods from themethodQueueand checks if they have been completed.- Specified by:
completeMethodin interfaceAsyncHandler
-