VisiBroker for Java

org.omg.PortableServer
Class ThreadPolicyValue

java.lang.Object
  extended by org.omg.PortableServer.ThreadPolicyValue
All Implemented Interfaces:
java.io.Serializable, IDLEntity

public final class ThreadPolicyValue
extends java.lang.Object
implements IDLEntity

The ThreadPolicyValue can have the following values. ORB_CTRL_MODEL - The ORB is responsible for assigning requests for an ORB- controlled POA to threads. SINGLE_THREAD_MODEL - Requests for a single-threaded POA are processed sequentially.

See Also:
Serialized Form

Field Summary
static int _MAIN_THREAD_MODEL
          MAIN_THREAD_MODEL - Requests for all main-thread POAs are processed sequentially.
static int _ORB_CTRL_MODEL
          ORB_CTRL_MODEL - The ORB is responsible for assigning requests for an ORB- controlled POA to threads.
static int _SINGLE_THREAD_MODEL
          SINGLE_THREAD_MODEL - Requests for a single-threaded POA are processed sequentially.
static ThreadPolicyValue MAIN_THREAD_MODEL
          MAIN_THREAD_MODEL - Requests for all main-thread POAs are processed sequentially.
static ThreadPolicyValue ORB_CTRL_MODEL
          ORB_CTRL_MODEL - The ORB is responsible for assigning requests for an ORB- controlled POA to threads.
static ThreadPolicyValue SINGLE_THREAD_MODEL
          SINGLE_THREAD_MODEL - Requests for a single-threaded POA are processed sequentially.
 
Method Summary
static ThreadPolicyValue from_int(int _vis_value)
           
 int value()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ORB_CTRL_MODEL

public static final int _ORB_CTRL_MODEL
ORB_CTRL_MODEL - The ORB is responsible for assigning requests for an ORB- controlled POA to threads. In a multi-threaded environment, concurrent requests may be delivered using multiple threads.

See Also:
Constant Field Values

_SINGLE_THREAD_MODEL

public static final int _SINGLE_THREAD_MODEL
SINGLE_THREAD_MODEL - Requests for a single-threaded POA are processed sequentially. In a multi-threaded environment, all upcalls made by this POA to implementation code (servants and servant managers) are made in a manner that is safe for code that is multi-thread-unaware.

See Also:
Constant Field Values

_MAIN_THREAD_MODEL

public static final int _MAIN_THREAD_MODEL
MAIN_THREAD_MODEL - Requests for all main-thread POAs are processed sequentially. In a multi-threaded environment, all upcalls made by all POAs with this policy are made in a manner that is safe for code that is multi-thread-unaware. If the environment has special requirements that some code must run on a distinguished "main" thread, servant upcalls will be processed on that thread.

See Also:
Constant Field Values

ORB_CTRL_MODEL

public static final ThreadPolicyValue ORB_CTRL_MODEL
ORB_CTRL_MODEL - The ORB is responsible for assigning requests for an ORB- controlled POA to threads. In a multi-threaded environment, concurrent requests may be delivered using multiple threads.


SINGLE_THREAD_MODEL

public static final ThreadPolicyValue SINGLE_THREAD_MODEL
SINGLE_THREAD_MODEL - Requests for a single-threaded POA are processed sequentially. In a multi-threaded environment, all upcalls made by this POA to implementation code (servants and servant managers) are made in a manner that is safe for code that is multi-thread-unaware.


MAIN_THREAD_MODEL

public static final ThreadPolicyValue MAIN_THREAD_MODEL
MAIN_THREAD_MODEL - Requests for all main-thread POAs are processed sequentially. In a multi-threaded environment, all upcalls made by all POAs with this policy are made in a manner that is safe for code that is multi-thread-unaware. If the environment has special requirements that some code must run on a distinguished "main" thread, servant upcalls will be processed on that thread.

Method Detail

value

public int value()

from_int

public static ThreadPolicyValue from_int(int _vis_value)

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online