public class Bandwidth extends Object implements ComparableByContent<Bandwidth>
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<Bandwidth> |
SERIALIZATION_HANDLE |
static String |
UNDEFINED_ID |
static long |
UNSPECIFIED_TIME_OF_FIRST_REFILL |
| Modifier and Type | Method and Description |
|---|---|
static BandwidthBuilder.BandwidthBuilderCapacityStage |
builder()
Creates a builder for
Bandwidth |
static Bandwidth |
classic(long capacity,
Refill refill)
Deprecated.
|
boolean |
equals(Object o) |
boolean |
equalsByContent(Bandwidth other) |
long |
getCapacity() |
String |
getId() |
long |
getInitialTokens() |
long |
getRefillPeriodNanos() |
long |
getRefillTokens() |
long |
getTimeOfFirstRefillMillis() |
int |
hashCode() |
boolean |
hasId() |
boolean |
isGready() |
boolean |
isIntervallyAligned() |
boolean |
isRefillIntervally() |
boolean |
isUseAdaptiveInitialTokens() |
static Bandwidth |
simple(long capacity,
Duration period)
Deprecated.
|
String |
toString() |
Bandwidth |
withId(String id)
Deprecated.
|
Bandwidth |
withInitialTokens(long initialTokens)
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequalspublic static final String UNDEFINED_ID
public static final long UNSPECIFIED_TIME_OF_FIRST_REFILL
public static final SerializationHandle<Bandwidth> SERIALIZATION_HANDLE
public static BandwidthBuilder.BandwidthBuilderCapacityStage builder()
BandwidthBandwidth@Deprecated public static Bandwidth simple(long capacity, Duration period)
builder()@Deprecated public static Bandwidth classic(long capacity, Refill refill)
builder()@Deprecated public Bandwidth withInitialTokens(long initialTokens)
BandwidthBuilder.BandwidthBuilderBuildStage.initialTokens(long) )}@Deprecated public Bandwidth withId(String id)
BandwidthBuilder.BandwidthBuilderBuildStage.id(String)public boolean isIntervallyAligned()
public long getTimeOfFirstRefillMillis()
public long getCapacity()
public long getInitialTokens()
public long getRefillPeriodNanos()
public long getRefillTokens()
public boolean isUseAdaptiveInitialTokens()
public boolean isRefillIntervally()
public boolean isGready()
public String getId()
public boolean hasId()
public boolean equalsByContent(Bandwidth other)
equalsByContent in interface ComparableByContent<Bandwidth>Copyright © 2024. All rights reserved.