You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
package org.omg.PortableServer;
|
|
|
|
|
|
/**
|
|
* org/omg/PortableServer/ThreadPolicyValue.java .
|
|
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
|
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u201/12322/corba/src/share/classes/org/omg/PortableServer/poa.idl
|
|
* Saturday, December 15, 2018 6:38:40 PM PST
|
|
*/
|
|
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
public class ThreadPolicyValue implements org.omg.CORBA.portable.IDLEntity
|
|
{
|
|
private int __value;
|
|
private static int __size = 2;
|
|
private static org.omg.PortableServer.ThreadPolicyValue[] __array = new org.omg.PortableServer.ThreadPolicyValue [__size];
|
|
|
|
public static final int _ORB_CTRL_MODEL = 0;
|
|
public static final org.omg.PortableServer.ThreadPolicyValue ORB_CTRL_MODEL = new org.omg.PortableServer.ThreadPolicyValue(_ORB_CTRL_MODEL);
|
|
public static final int _SINGLE_THREAD_MODEL = 1;
|
|
public static final org.omg.PortableServer.ThreadPolicyValue SINGLE_THREAD_MODEL = new org.omg.PortableServer.ThreadPolicyValue(_SINGLE_THREAD_MODEL);
|
|
|
|
public int value ()
|
|
{
|
|
return __value;
|
|
}
|
|
|
|
public static org.omg.PortableServer.ThreadPolicyValue from_int (int value)
|
|
{
|
|
if (value >= 0 && value < __size)
|
|
return __array[value];
|
|
else
|
|
throw new org.omg.CORBA.BAD_PARAM ();
|
|
}
|
|
|
|
protected ThreadPolicyValue (int value)
|
|
{
|
|
__value = value;
|
|
__array[__value] = this;
|
|
}
|
|
} // class ThreadPolicyValue
|