BrokerClient.EndRequests Method ()

Informs the broker that this instance of the BrokerClient class is finished sending request messages and that the broker should commit all request messages, subject to the default timeout period.


Namespace: Microsoft.Hpc.Scheduler.Session
Assembly: Microsoft.Hpc.Scheduler.Session (in Microsoft.Hpc.Scheduler.Session.dll)

'Usage
Dim instance As BrokerClient(Of TContract)

instance.EndRequests

public void EndRequests ()
public void EndRequests ()
public function EndRequests ()

Exception typeCondition
System.TimeoutException

The broker did not commit the request messages within the default timeout period.

The default length of time that the EndRequests method waits for the broker to commit the request messages is 60,000 milliseconds. To specify a different length of time, use the EndRequests(Int32) method instead.

noteNote
The difference between the Flush method and the EndRequests method: The Flush method commits all pending request messages, and allows further request messages to be sent after the Flush method was called. The EndRequests method commits all pending request messages, and does not allow further request messages to be sent.

noteNote
A Session object and a DurableSession object handle requests differently. A Session object may begin processing requests before the EndRequests method is called. However, a DurableSession object will not process requests until the EndRequests method is called. After the EndRequests method is called, the DurableSession object will commit the requests to the message queue.

Platform Note: This method was introduced in Windows HPC Server 2008 R2 and is not supported in previous versions.


No members of this type are thread safe.

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22
Show: