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
- Instantiate a new IMSInteractionSpec object or obtain the
IMSInteractionSpec object from your specific interaction.
- 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);