Class RateGateContinuation
java.lang.Object
com.sportradar.livedata.sdk.common.rategate.RateGateContinuation
- 
Constructor SummaryConstructorsConstructorDescriptionRateGateContinuation(RateGate gate, Executor executor) Construct a new RateGateContinuation
- 
Method SummaryModifier 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- 
RateGateContinuationConstruct a new RateGateContinuation- Parameters:
- gate- - used rategate
- executor- - executor to invoke the continuation with
 
 
- 
- 
Method Details- 
afterFactory method to create a simple continuation.- Parameters:
- gate- - for specified rategate
- Returns:
- A RateGateContinuation instance. Usage: RateGateContinuation.after(rg).continueWith(runnable);
 
- 
continueWithContinue executing the continuation when ready- Parameters:
- continuation- - desired continuation
- Throws:
- InterruptedException- given thread were interrupted
 
- 
continueWithContinue executing the continuation when ready- Parameters:
- amount- - positive amount
- continuation- - desired continuation
- Throws:
- InterruptedException- given thread were interrupted
 
 
-