public interface BlockingStrategy
PARKING,
also you can provide any other implementation which for example does something useful instead of blocking(acts as co-routine) or does spin loop.| Modifier and Type | Field and Description |
|---|---|
static BlockingStrategy |
PARKING |
| Modifier and Type | Method and Description |
|---|---|
void |
park(long nanosToPark)
Park current thread to required duration of nanoseconds.
|
static final BlockingStrategy PARKING
void park(long nanosToPark) throws InterruptedException
InterruptedException in case of current thread was interrupted.nanosToPark - time to park in nanosecondsInterruptedException - if current thread is interrupted.Copyright © 2021. All rights reserved.