当前位置: 首页>>代码示例>>Java>>正文


Java ThreadPolicyValue类代码示例

本文整理汇总了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"
       );
}
 
开发者ID:vilie,项目名称:javify,代码行数:12,代码来源:gnuThreadPolicy.java

示例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));
}
 
开发者ID:vilie,项目名称:javify,代码行数:11,代码来源:gnuPOA.java

示例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);
    }
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:12,代码来源:ThreadPolicyImpl.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:POAImpl.java

示例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();
}
 
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:gnuThreadPolicy.java

示例6: create_thread_policy

import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
/** {@inheritDoc} */
public ThreadPolicy create_thread_policy(ThreadPolicyValue a_value)
{
  return new gnuThreadPolicy(a_value);
}
 
开发者ID:vilie,项目名称:javify,代码行数:6,代码来源:gnuPOA.java

示例7: ThreadPolicyImpl

import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
public ThreadPolicyImpl(org.omg.PortableServer.ThreadPolicyValue value)
{
    m_value = value;
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:5,代码来源:ThreadPolicyImpl.java

示例8: value

import org.omg.PortableServer.ThreadPolicyValue; //导入依赖的package包/类
public org.omg.PortableServer.ThreadPolicyValue value()
{
    return m_value;
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:5,代码来源:ThreadPolicyImpl.java


注:本文中的org.omg.PortableServer.ThreadPolicyValue类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。