|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.omg.PortableServer.ThreadPolicyValue
public class ThreadPolicyValue
Defines the possible values for the POA thread policy. This enumeration can obtain the following values:
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.
| Field Summary | |
|---|---|
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. |
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
protected ThreadPolicyValue(int a_value)
| Method Detail |
|---|
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||