| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| private long | |
| pack-priv long | |
| private volatile long | |
| pack-priv static final int | |
| private static final long | |
| private static final long | |
| private static final int | |
| private long | |
| private long | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public long | |
| pack-priv long | |
| private void | |
| public final boolean | isTooSoon(long
can be TIME_UNAVAILABLE (-1) to signal that time is not
available currentTime)Implements ch. |
| private void |
| DEFAULT_MASK | back to summary |
|---|---|
| pack-priv static final int DEFAULT_MASK | |
| invocationCounter | back to summary |
|---|---|
| private long invocationCounter | |
| lowerLimitForMaskMatch | back to summary |
|---|---|
| pack-priv long lowerLimitForMaskMatch | |
| mask | back to summary |
|---|---|
| private volatile long mask | |
| MASK_DECREASE_RIGHT_SHIFT_COUNT | back to summary |
|---|---|
| pack-priv static final int MASK_DECREASE_RIGHT_SHIFT_COUNT | |
| MASK_DECREASE_THRESHOLD | back to summary |
|---|---|
| private static final long MASK_DECREASE_THRESHOLD | |
| MASK_INCREASE_THRESHOLD | back to summary |
|---|---|
| private static final long MASK_INCREASE_THRESHOLD | |
| MAX_MASK | back to summary |
|---|---|
| private static final int MAX_MASK | |
| maxDelayThreshold | back to summary |
|---|---|
| private long maxDelayThreshold | |
| minDelayThreshold | back to summary |
|---|---|
| private long minDelayThreshold | |
| upperLimitForNoMaskMatch | back to summary |
|---|---|
| pack-priv long upperLimitForNoMaskMatch | |
| DefaultInvocationGate | back to summary |
|---|---|
| public DefaultInvocationGate() | |
| DefaultInvocationGate | back to summary |
|---|---|
| public DefaultInvocationGate(long minDelayThreshold, long maxDelayThreshold, long currentTime) | |
| decreaseMask | back to summary |
|---|---|
| private void decreaseMask() | |
| getInvocationCounter | back to summary |
|---|---|
| public long getInvocationCounter() | |
| getMask | back to summary |
|---|---|
| pack-priv long getMask() | |
| increaseMask | back to summary |
|---|---|
| private void increaseMask() | |
| isTooSoon | back to summary |
|---|---|
| public final boolean isTooSoon(long currentTime) Implements ch. Doc from ch. The caller of this method can decide to skip further work if the returned value is true. Implementations should be able to give a reasonable answer even if current time date is unavailable.
| |
| updateLimits | back to summary |
|---|---|
| private void updateLimits(long currentTime) | |