Class CommandWaitBudget
java.lang.Object
com.ultikits.ultitools.abstracts.command.CommandWaitBudget
A drain's remaining allowance; only time spent waiting for command bodies is charged.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandWaitBudget.Awaiterprivate final LongSupplierprivate long -
Constructor Summary
ConstructorsConstructorDescriptionCommandWaitBudget(Duration allowance, LongSupplier clock, CommandWaitBudget.Awaiter awaiter) -
Method Summary
-
Field Details
-
clock
-
awaiter
-
remaining
private long remaining
-
-
Constructor Details
-
CommandWaitBudget
CommandWaitBudget() -
CommandWaitBudget
CommandWaitBudget(Duration allowance, LongSupplier clock, CommandWaitBudget.Awaiter awaiter)
-
-
Method Details
-
await
- Throws:
InterruptedException
-