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


Java WrongTransaction类代码示例

本文整理汇总了Java中org.omg.CORBA.WrongTransaction的典型用法代码示例。如果您正苦于以下问题:Java WrongTransaction类的具体用法?Java WrongTransaction怎么用?Java WrongTransaction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WrongTransaction类属于org.omg.CORBA包,在下文中一共展示了WrongTransaction类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: get_response

import org.omg.CORBA.WrongTransaction; //导入依赖的package包/类
public synchronized void get_response()
    throws org.omg.CORBA.WrongTransaction
{
    while (gotResponse == false) {
        // release the lock. wait to be notified by the thread that is
        // doing the asynchronous invocation.
        try {
            wait();
        }
        catch (InterruptedException e) {}
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:RequestImpl.java

示例2: get_next_response

import org.omg.CORBA.WrongTransaction; //导入依赖的package包/类
@Override
public Request get_next_response() throws WrongTransaction {
    return null;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:5,代码来源:TestSingletonOrbImpl.java

示例3: get_next_response

import org.omg.CORBA.WrongTransaction; //导入依赖的package包/类
/**
 * Get the next instance with a response being received. If all currently sent
 * responses not yet processed, this method pauses till at least one of them
 * is complete. If there are no requests currently sent, the method pauses
 * till some request is submitted and the response is received. This strategy
 * is identical to the one accepted by Suns 1.4 ORB implementation.
 *
 * The returned response is removed from the list of the currently submitted
 * responses and is never returned again.
 *
 * @return the previously sent request that now contains the received
 * response.
 *
 * @throws WrongTransaction If the method was called from the transaction
 * scope different than the one, used to send the request. The exception can
 * be raised only if the request is implicitly associated with some particular
 * transaction.
 */
public Request get_next_response() throws org.omg.CORBA.WrongTransaction
{
  return asynchron.get_next_response();
}
 
开发者ID:vilie,项目名称:javify,代码行数:23,代码来源:OrbFunctional.java


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