public class RateGateContinuation extends Object
Constructor and Description |
---|
RateGateContinuation(RateGate gate,
Executor executor)
Construct a new RateGateContinuation
|
Modifier and Type | Method and Description |
---|---|
static RateGateContinuation |
after(RateGate gate)
Factory method to create a simple continuation.
|
void |
continueWith(int amount,
Runnable continuation)
Continue executing the continuation when ready
|
void |
continueWith(Runnable continuation)
Continue executing the continuation when ready
|
public static RateGateContinuation after(RateGate gate)
gate
- - for specified rategatepublic void continueWith(Runnable continuation) throws InterruptedException
continuation
- - desired continuationInterruptedException
public void continueWith(int amount, Runnable continuation) throws InterruptedException
amount
- - positive amountcontinuation
- - desired continuationInterruptedException
Copyright © 2013–2023. All rights reserved.