Interface BiLateScheduler<A,B>
- Type Parameters:
A- type A objectB- type B object
- All Superinterfaces:
CancellableScheduler
- All Known Implementing Classes:
AsyncBiLateScheduler,FixedBiLateScheduler
KarmaAPI bi-object late scheduler
-
Method Summary
Modifier and TypeMethodDescriptionvoidComplete the schedulervoidComplete the schedulerGet the A objectGet the B objectbooleanGet if the scheduler is completeddefault BiLateScheduler<A,B>thenCompleteUnder(BiLateScheduler<A,B> next)Complete another bi consumer with these objectswhenComplete(Runnable paramRunnable)Set the complete actionwhenComplete(BiConsumer<A,B> paramBiConsumer)Set the complete actionwhenComplete(TriConsumer<A,B,Throwable> paramTriConsumer)Set the complete actionMethods inherited from interface ml.karmaconfigs.api.common.timer.scheduler.CancellableScheduler
isCancelled, setCancelled, whenCancelled
-
Method Details
-
whenComplete
Set the complete action- Parameters:
paramRunnable- the action to perform when the scheduler is completed- Returns:
- this instance
-
whenComplete
Set the complete action- Parameters:
paramBiConsumer- the action to perform when the scheduler is completed- Returns:
- this instance
-
whenComplete
Set the complete action- Parameters:
paramTriConsumer- the action to perform when the scheduler is completed- Returns:
- this instance
-
isCompleted
boolean isCompleted()Get if the scheduler is completed- Returns:
- if the scheduler is complete
-
getObject
A getObject()Get the A object- Returns:
- the A object
-
getSubObject
B getSubObject()Get the B object- Returns:
- the B object
-
complete
Complete the scheduler- Parameters:
paramA- the type A objectparamB- the type B object
-
complete
Complete the scheduler- Parameters:
paramA- the type A objectparamB- the type B objectparamThrowable- any error that has been thrown
-
thenCompleteUnder
Complete another bi consumer with these objects- Parameters:
next- the other bi consumer- Returns:
- the other bi consumer
-