Interface BiLateScheduler<A,​B>

Type Parameters:
A - type A object
B - type B object
All Superinterfaces:
CancellableScheduler
All Known Implementing Classes:
AsyncBiLateScheduler, FixedBiLateScheduler

public interface BiLateScheduler<A,​B> extends CancellableScheduler
KarmaAPI bi-object late scheduler
  • Method Details

    • whenComplete

      BiLateScheduler<A,​B> whenComplete(Runnable paramRunnable)
      Set the complete action
      Parameters:
      paramRunnable - the action to perform when the scheduler is completed
      Returns:
      this instance
    • whenComplete

      BiLateScheduler<A,​B> whenComplete(BiConsumer<A,​B> paramBiConsumer)
      Set the complete action
      Parameters:
      paramBiConsumer - the action to perform when the scheduler is completed
      Returns:
      this instance
    • whenComplete

      BiLateScheduler<A,​B> whenComplete(TriConsumer<A,​B,​Throwable> paramTriConsumer)
      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

      void complete(A paramA, B paramB)
      Complete the scheduler
      Parameters:
      paramA - the type A object
      paramB - the type B object
    • complete

      void complete(A paramA, B paramB, Throwable paramThrowable)
      Complete the scheduler
      Parameters:
      paramA - the type A object
      paramB - the type B object
      paramThrowable - any error that has been thrown
    • thenCompleteUnder

      default BiLateScheduler<A,​B> thenCompleteUnder(BiLateScheduler<A,​B> next)
      Complete another bi consumer with these objects
      Parameters:
      next - the other bi consumer
      Returns:
      the other bi consumer