Class RateGateContinuation
java.lang.Object
com.sportradar.livedata.sdk.common.rategate.RateGateContinuation
-
Constructor Summary
ConstructorsConstructorDescriptionRateGateContinuation(RateGate gate, Executor executor) Construct a new RateGateContinuation -
Method Summary
Modifier and TypeMethodDescriptionstatic RateGateContinuationFactory method to create a simple continuation.voidcontinueWith(int amount, Runnable continuation) Continue executing the continuation when readyvoidcontinueWith(Runnable continuation) Continue executing the continuation when ready
-
Constructor Details
-
RateGateContinuation
Construct a new RateGateContinuation- Parameters:
gate- - used rategateexecutor- - executor to invoke the continuation with
-
-
Method Details
-
after
Factory method to create a simple continuation.- Parameters:
gate- - for specified rategate- Returns:
A RateGateContinuation instance.
Usage: RateGateContinuation.after(rg).continueWith(runnable);
-
continueWith
Continue executing the continuation when ready- Parameters:
continuation- - desired continuation- Throws:
InterruptedException- given thread were interrupted
-
continueWith
Continue executing the continuation when ready- Parameters:
amount- - positive amountcontinuation- - desired continuation- Throws:
InterruptedException- given thread were interrupted
-