public interface ThreadConfinementAsserter
| Modifier and Type | Method and Description |
|---|---|
void |
assertThreadConfined()
Asserts that this thread is the only thread that has ever called this
method.
|
static ThreadConfinementAsserter |
create()
Creates and returns a new ThreadConfinementAsserter if assertions are enabled, otherwise
returns a no-op asserter.
|
static ThreadConfinementAsserter |
createEnabled()
Creates and returns a new ThreadConfinementAsserter that is always enabled.
|
void assertThreadConfined()
IllegalStateException - If another thread called this method previously.static ThreadConfinementAsserter create()
static ThreadConfinementAsserter createEnabled()
Copyright © 2024. All rights reserved.