本文整理汇总了Java中org.omg.PortableServer.ThreadPolicyValue类的典型用法代码示例。如果您正苦于以下问题:Java ThreadPolicyValue类的具体用法?Java ThreadPolicyValue怎么用?Java ThreadPolicyValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ThreadPolicyValue类属于org.omg.PortableServer包,在下文中一共展示了ThreadPolicyValue类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: gnuThreadPolicy
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
/**
* Create the policy.
*
* @param v a value for the policy.
*/
public gnuThreadPolicy(ThreadPolicyValue v)
{
super(THREAD_POLICY_ID.value, v, v.value(),
"IDL:org.omg/PortableServer/ThreadPolicy:1.0"
);
}
示例2: connect_to_orb
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
/**
* Connect the given delegate object to orb.
*/
protected void connect_to_orb(byte[] an_Object_Id, org.omg.CORBA.Object object)
{
if (applies(ThreadPolicyValue.SINGLE_THREAD_MODEL))
m_orb.connect_1_thread(object, toIORKey(an_Object_Id), this);
else
m_orb.connect(object, toIORKey(an_Object_Id));
}
示例3: createPolicy
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
public static ThreadPolicyImpl createPolicy(Any val)
throws org.omg.CORBA.PolicyError
{
try {
ThreadPolicyValue value = ThreadPolicyValueHelper.extract(val);
return new ThreadPolicyImpl(value);
}
catch (BAD_PARAM bp) {
throw new PolicyError(BAD_POLICY_VALUE.value);
}
}
示例4: create_thread_policy
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
/**
* <code>create_thread_policy</code>
* <b>Section 3.3.8.5</b>
*/
public ThreadPolicy create_thread_policy(
ThreadPolicyValue value)
{
return new ThreadPolicyImpl(value);
}
示例5: value
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
/**
* Get the value for the policy that was passed in a constructor.
*/
public ThreadPolicyValue value()
{
return (ThreadPolicyValue) getValue();
}
示例6: create_thread_policy
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
/** {@inheritDoc} */
public ThreadPolicy create_thread_policy(ThreadPolicyValue a_value)
{
return new gnuThreadPolicy(a_value);
}
示例7: ThreadPolicyImpl
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
public ThreadPolicyImpl(org.omg.PortableServer.ThreadPolicyValue value)
{
m_value = value;
}
示例8: value
import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
public org.omg.PortableServer.ThreadPolicyValue value()
{
return m_value;
}