Interstage Application Server リファレンスマニュアル(API編) |
目次
索引
![]() ![]() |
第3章 Javaインタフェース | > 3.23 Currentクラス |
org.omg.CosTransactions.Current.set_timeout
public interface Current extends org.omg.CORBA.Object {
public void set_timeout(int seconds)
throws org.omg.CORBA.Exception;
}
指定されたseconds(秒数)をトランザクションのタイムアウト監視時間として設定します。secondsで設定した時間内に処理が完了しない場合、トランザクションはrollbackされます。
トランザクション実行中に呼び出された場合、指定されたタイムアウト値は次のトランザクションを開始するまで有効となりません。
Currentインタフェースのオブジェクトリファレンスは、org.omg.CORBA.ORB.resolve_initial_referencesメソッド (org.omg.CORBA.ORB.ObjectId_TransactionCurrent)で取得します。
処理が異常終了した場合は、org.omg.CORBA.Exception例外が発生します。
SystemExceptionの場合は以下の例外が発生します。
org.omg.CORBA.NO_MEMORY: 動的メモリの獲得に失敗しました。 org.omg.CORBA.INTERNAL: CORBAサービスで異常が発生しました。
目次
索引
![]() ![]() |