public class WorkerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static long |
getExchangeInterval(long rate)
Gets the interval used for exchanging messages (ie.: sending them at a regular pace)
|
static long |
waitNanoInterval(long expectedFireTime,
long intervalInNanos) |
public static long getExchangeInterval(long rate)
rate
- The given ratepublic static long waitNanoInterval(long expectedFireTime, long intervalInNanos)
This documentation was released into the public domain.