Setting the socket timeout value by using the Common Client Interface

Use the setSocketTimeout method of the IMSInteractionSpec object to set the socket timeout value.

About this task

To use the setSocketTimeout method to set the socket timeout value:

Procedure

  1. Instantiate a new IMSInteractionSpec object or obtain the IMSInteractionSpec object from your specific interaction.
  2. set the socket timeout value for IMSInteractionSpec by using the setSocketTimeout method.
    For example:
    interactionSpec.setSocketTimeout(timeoutValue1);
    interaction.execute(interactionSpec,input,output); 
    
    interactionSpec.setSocketTimeout(timeoutValue2);
    interaction.execute(interactionSpec,input,output);