public class DefaultInvocationGate extends Object implements InvocationGate
TIME_UNAVAILABLE| Constructor and Description |
|---|
DefaultInvocationGate() |
DefaultInvocationGate(long minDelayThreshold,
long maxDelayThreshold,
long currentTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getInvocationCounter() |
boolean |
isTooSoon(long currentTime)
The caller of this method can decide to skip further work if the returned value is true.
|
public DefaultInvocationGate()
public DefaultInvocationGate(long minDelayThreshold,
long maxDelayThreshold,
long currentTime)
public final boolean isTooSoon(long currentTime)
InvocationGateisTooSoon in interface InvocationGatecurrentTime - can be TIME_UNAVAILABLE (-1) to signal that time is not availablepublic long getInvocationCounter()
Copyright © 2005–2018 QOS.ch. All rights reserved.