本文整理汇总了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) {}
}
}
示例2: get_next_response
import org.omg.CORBA.WrongTransaction; //导入依赖的package包/类
@Override
public Request get_next_response() throws WrongTransaction {
return null;
}
示例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();
}