Interstage Application Server リファレンスマニュアル(API編)
目次 索引 前ページ次ページ

第3章 Javaインタフェース> 3.23 Currentクラス

3.23.7 org.omg.CosTransactions.Current.set_timeout

名前

 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)で取得します。

パラメタ

 seconds
 トランザクションのタイムアウト監視時間を指定します。secondsに0が指定された場合、タイムアウト監視はされません。

復帰値

処理が異常終了した場合は、org.omg.CORBA.Exception例外が発生します。

 SystemExceptionの場合は以下の例外が発生します。
 org.omg.CORBA.NO_MEMORY:
   動的メモリの獲得に失敗しました。
 org.omg.CORBA.INTERNAL:
   CORBAサービスで異常が発生しました。

目次 索引 前ページ次ページ

All Rights Reserved, Copyright(C) 富士通株式会社 2005