public class AssertScopeExclusiveAccess extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AssertScopeExclusiveAccess.Scope |
Constructor and Description |
---|
AssertScopeExclusiveAccess() |
Modifier and Type | Method and Description |
---|---|
AssertScopeExclusiveAccess.Scope |
scope()
Try to enter a scope, validating only one thread can get inside the same scope.
|
public AssertScopeExclusiveAccess.Scope scope()
IllegalStateException
- when another thread wants to enter the same scope.