public enum ConcurrencyStrategy extends Enum<ConcurrencyStrategy>
Enum Constant and Description |
---|
ACTIVE
Active entities run their own thread of control
|
CONCURRENT
Multiple invocations of a behavioral feature may occur simultaneously to
one instance and all of them may proceed concurrently.
|
GUARDED
Multiple invocations of a behavioral feature may occur simultaneously to
one instance, but only one is allowed to commence.
|
NULL
No value,
null , nothing, void, etc. |
SEQUENTIAL
No concurrency management mechanism is associated with the operation and,
therefore, concurrency conflicts may occur.
|
UNKNOWN
Not enough is known about the concurrency strategy for this entity
|
Modifier and Type | Method and Description |
---|---|
static ConcurrencyStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrencyStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrencyStrategy ACTIVE
public static final ConcurrencyStrategy CONCURRENT
public static final ConcurrencyStrategy GUARDED
public static final ConcurrencyStrategy NULL
null
, nothing, void, etc.public static final ConcurrencyStrategy SEQUENTIAL
public static final ConcurrencyStrategy UNKNOWN
public static ConcurrencyStrategy[] values()
for (ConcurrencyStrategy c : ConcurrencyStrategy.values()) System.out.println(c);
public static ConcurrencyStrategy 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 nullCopyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.