ICluster::put_Timeout method

Sets the maximum time that the application will wait for a response from the cluster when making synchronous calls.

Syntax

HRESULT put_Timeout(
  [in] long timeout
);

Parameters

  • timeout [in]
    The time to wait, in milliseconds. To wait indefinitely (the default), set this value to 0.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, call the ICluster::get_ErrorMessage method.

Remarks

Synchronous calls to the cluster wait indefinitely. This can be an issue if the cluster is under heavy load and your application cannot appear to stop responding. This method limits the time to wait before method calls return. When the time-out expires, the method fails and sets get_ErrorMessage.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ICluster

ICluster::get_Timeout