public static enum NonBlockingLockManager.RunState extends Enum<NonBlockingLockManager.RunState>
NonBlockingLockManager
.Enum Constant and Description |
---|
Halted
When halted.
|
Running
While running (aka open).
|
Shutdown
When shutting down normally.
|
ShutdownNow
When shutting down immediately.
|
Starting
During startup.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTransitionLegal(NonBlockingLockManager.RunState newval) |
int |
value() |
static NonBlockingLockManager.RunState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NonBlockingLockManager.RunState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NonBlockingLockManager.RunState Starting
public static final NonBlockingLockManager.RunState Running
public static final NonBlockingLockManager.RunState Shutdown
Future
s are still monitored for completion and waiting tasks
will eventually be granted their locks and execute on the delegate.public static final NonBlockingLockManager.RunState ShutdownNow
Future
s for running tasks are cancelled (they are
interrupted).public static final NonBlockingLockManager.RunState Halted
Future
s were cancelled.public static NonBlockingLockManager.RunState[] values()
for (NonBlockingLockManager.RunState c : NonBlockingLockManager.RunState.values()) System.out.println(c);
public static NonBlockingLockManager.RunState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int value()
public boolean isTransitionLegal(NonBlockingLockManager.RunState newval)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.