public class Refill extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static Refill |
of(long tokens,
Duration period)
Creates the new instance of
Refill that specifies the speed of tokens regeneration |
String |
toString() |
public static Refill of(long tokens, Duration period)
Refill
that specifies the speed of tokens regenerationtokens
- amount of tokensperiod
- the period within tokens
will be fully regeneratedCopyright © 2018. All rights reserved.