public class NullThreadContext extends Object implements ThreadContext
| Constructor and Description |
|---|
NullThreadContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
block()
Marks the thread context as blocked.
|
void |
close()
Closes the context.
|
void |
execute(Runnable command) |
boolean |
isBlocked()
Returns whether the thread context is currently marked blocked.
|
Scheduled |
schedule(Duration initialDelay,
Duration interval,
Runnable callback)
Schedules a runnable at a fixed rate.
|
Scheduled |
schedule(Duration delay,
Runnable callback)
Schedules a runnable after a delay.
|
void |
unblock()
Marks the thread context as unblocked.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckThread, currentContext, currentContextOrThrow, isCurrentContextpublic Scheduled schedule(Duration delay, Runnable callback)
Schedulerpublic Scheduled schedule(Duration initialDelay, Duration interval, Runnable callback)
Schedulerpublic boolean isBlocked()
ThreadContextisBlocked in interface ThreadContextpublic void block()
ThreadContextblock in interface ThreadContextpublic void unblock()
ThreadContextunblock in interface ThreadContextpublic void close()
ThreadContextclose in interface ThreadContextclose in interface AutoCloseableCopyright © 2013–2019. All rights reserved.