| org.apache.beehive.controls.api.bean.ThreadingPolicy
ThreadingPolicy | public enum ThreadingPolicy (Code) | | 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.
|
Field Summary | |
Enum Constant | 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. | Enum Constant | 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. |
MULTI_THREADED | Enum Constant MULTI_THREADED(Code) | | When a control implementation is declared as MULTI_THREADED, the
controls infrastructure permits multiple threads to concurrently
execute in instances of that control. It is then the responsibility
of the implementation to ensure internal thread-safety using
standard Java concurrency mechanisms. This policy may yield higher
performance, at the cost of additional work on the implementor's part.
|
SINGLE_THREADED | Enum Constant SINGLE_THREADED(Code) | | 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.
This is the default policy if no
Threading annotation is
specified.
|
|
|