Common Client Interface を使用したソケット・タイムアウト値の設定

IMSInteractionSpec オブジェクトの setSocketTimeout メソッドを使用して、 ソケット・タイムアウト値を設定します。

このタスクについて

setSocketTimeout メソッドを使用してソケット・タイムアウト値を設定する手順は、 次のとおりです。

手順

  1. 新しい IMSInteractionSpec オブジェクトをインスタンス化するか、または特定の対話から IMSInteractionSpec オブジェクトを取得します。
  2. setSocketTimeout メソッドを使用して、 IMSInteractionSpec にソケット・タイムアウト値を設定します。 以下に例を示します。
    interactionSpec.setSocketTimeout(timeoutValue1);
    interaction.execute(interactionSpec,input,output); 
    
    interactionSpec.setSocketTimeout(timeoutValue2);
    interaction.execute(interactionSpec,input,output);

フィードバック