Class RateGateContinuation
- java.lang.Object
-
- com.sportradar.livedata.sdk.common.rategate.RateGateContinuation
-
public class RateGateContinuation extends Object
-
-
Constructor Summary
Constructors Constructor Description RateGateContinuation(RateGate gate, Executor executor)
Construct a new RateGateContinuation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RateGateContinuation
after(RateGate gate)
Factory method to create a simple continuation.void
continueWith(int amount, Runnable continuation)
Continue executing the continuation when readyvoid
continueWith(Runnable continuation)
Continue executing the continuation when ready
-
-
-
Method Detail
-
after
public static RateGateContinuation after(RateGate gate)
Factory method to create a simple continuation.- Parameters:
gate
- - for specified rategate- Returns:
A RateGateContinuation instance.
Usage: RateGateContinuation.after(rg).continueWith(runnable);
-
continueWith
public void continueWith(Runnable continuation) throws InterruptedException
Continue executing the continuation when ready- Parameters:
continuation
- - desired continuation- Throws:
InterruptedException
- given thread were interrupted
-
continueWith
public void continueWith(int amount, Runnable continuation) throws InterruptedException
Continue executing the continuation when ready- Parameters:
amount
- - positive amountcontinuation
- - desired continuation- Throws:
InterruptedException
- given thread were interrupted
-
-