org.omg.PortableServer
public class ThreadPolicyValue extends Object implements Serializable, IDLEntity
Field Summary | |
---|---|
static ThreadPolicyValue | ORB_CTRL_MODEL
An instance of ThreadPolicyValue, initialized to ORB_CTRL_MODEL. |
static ThreadPolicyValue | SINGLE_THREAD_MODEL
An instance of ThreadPolicyValue, initialized to SINGLE_THREAD_MODEL. |
static int | _ORB_CTRL_MODEL
The possible value of this enumeration (ORB_CTRL_MODEL). |
static int | _SINGLE_THREAD_MODEL
The possible value of this enumeration (SINGLE_THREAD_MODEL). |
Constructor Summary | |
---|---|
protected | ThreadPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected. |
Method Summary | |
---|---|
static ThreadPolicyValue | from_int(int code)
Returns the ThreadPolicyValue, matching the given integer constant.
|
String | toString()
Returns a short string representation. |
int | value()
Returns the integer code of the enumeration value. |
Parameters: code one of _ORB_CTRL_MODEL, _SINGLE_THREAD_MODEL.
Returns: one of ORB_CTRL_MODEL, SINGLE_THREAD_MODEL.
Throws: BAD_PARAM if the parameter is not one of the valid values.
Returns: the name of the current enumeration value.
Returns: one of ORB_CTRL_MODEL, SINGLE_THREAD_MODEL.