public interface UninterruptibleBlockingStrategy
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 UninterruptibleBlockingStrategy |
PARKING |
Modifier and Type | Method and Description |
---|---|
void |
parkUninterruptibly(long nanosToPark)
Parks current thread to required duration of nanoseconds ignoring all interrupts,
if interrupt was happen then interruption flag will be restored on the current thread.
|
static final UninterruptibleBlockingStrategy PARKING
Copyright © 2021. All rights reserved.