public final class Bugshaker extends Object implements MultiverseConstants
if(MultiverseConstants.SHAKE_BUGS){shakeBugs();}
Since the SHAKE_BUGS field is final, it can be removed by the JIT is the bugshaking is disabled so
there is no overhead.
At the moment the inside of the Bugshaker is not configurable (so no control on how much delay and how often
it happens).LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED| Modifier and Type | Method and Description |
|---|---|
static void |
shakeBugs()
Delays a random amount of time.
|
static void |
sleepUs(long delayUs)
Delays a number of microseconds.
|
public static void shakeBugs()
public static void sleepUs(long delayUs)
delayUs - the number of microseconds to delay.Copyright © 2025. All rights reserved.