|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<ThreadingPolicy>
ThreadingPolicy
public enum ThreadingPolicy
Specifies threading policy for control implementations. The constants
of this enumerated type describe the threading policies that apply
during execution of controls. They are used in conjunction with the
Threading
annotation type to specify the responsibilities of
the runtime infrastructure and control implementation with respect to
threading.
Enum Constant Summary | |
---|---|
MULTI_THREADED
When a control implementation is declared as MULTI_THREADED, the controls infrastructure permits multiple threads to concurrently execute in instances of that control. |
|
SINGLE_THREADED
When a control implementation is declared as SINGLE_THREADED, the controls infrastructure ensures that only a single thread will be executing in a particular instance of that control at any time. |
Method Summary | |
---|---|
static ThreadingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ThreadingPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ThreadingPolicy SINGLE_THREADED
Threading
annotation is
specified.
public static final ThreadingPolicy MULTI_THREADED
Method Detail |
---|
public static final ThreadingPolicy[] values()
for(ThreadingPolicy c : ThreadingPolicy.values()) System.out.println(c);
public static ThreadingPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |