public class ThreadPolicyValue extends Object implements Serializable, IDLEntity
Servant._object_id() and Servant._poa().
These two methods use thread to data map and must work correctly
even then the servant code is executed in several parallel threads.
| Modifier and Type | Field and Description |
|---|---|
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).
|
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ThreadPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int _ORB_CTRL_MODEL
public static final ThreadPolicyValue ORB_CTRL_MODEL
public static final int _SINGLE_THREAD_MODEL
public static final ThreadPolicyValue SINGLE_THREAD_MODEL
protected ThreadPolicyValue(int a_value)
public static ThreadPolicyValue from_int(int code)
code - one of _ORB_CTRL_MODEL, _SINGLE_THREAD_MODEL.BAD_PARAM - if the parameter is not one of the valid values.public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)public int value()