Name

ThreadPolicyValue

Synopsis

This class represents the value of an ThreadPolicy for a POA. A value of ThreadPolicyValue.ORB_CTRL_MODEL indicates that the ORB allocates POA requests to threads. A value of ThreadPolicyValue.SINGLE_THREAD_MODEL indicates that all requests for the POA are serialized within a single thread. The default value is ORB_CTRL_MODEL.

                  Implementations
public class ThreadPolicyValue implements org.omg.CORBA.portable.IDLEntity {
// Protected Constructors
   protected ThreadPolicyValue( int value);  
// Public Constants
   public static final int _ORB_CTRL_MODEL;                      // =0
   public static final int _SINGLE_THREAD_MODEL;                 // =1
   public static final ThreadPolicyValue ORB_CTRL_MODEL;  
   public static final ThreadPolicyValue SINGLE_THREAD_MODEL;  
// Public Class Methods
   public static ThreadPolicyValue from_int( int value);  
// Public Instance Methods
   public int value();  
}

Passed To

POAOperations.create_thread_policy()

Returned By

ThreadPolicyOperations.value(), ThreadPolicyValue.from_int()

Type Of

ThreadPolicyValue.{ORB_CTRL_MODEL, SINGLE_THREAD_MODEL}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.