Solclient
ICacheSessionCancelCacheRequests Method |
Cancel all in progress cache requests for a given cache session.
This function is thread safe and can be called from any thread. When this function is invoked:
All blocked synchronous cache requests will return immediately with SOLCLIENT_INCOMPLETE return code
and CacheRequestCancelled subcode. A cache event RequestCompletedNotice with a subcode of CacheRequestCancelled
is generated for each in progress asynchronous cache request. The associated cache session is still valid to use. Live messages that have been queued (if any) will be delivered.
Namespace: SolaceSystems.Solclient.Messaging.Cache
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
ReturnCode CancelCacheRequests()
Function CancelCacheRequests As ReturnCode
ReturnCode CancelCacheRequests()
Return Value
Type: ReturnCodeSOLCLIENT_OK, if successful, otherwise an exception is thrown
Exceptions
Exception | Condition |
---|---|
OperationErrorException | Thrown when the operation fails, see ErrorInfo for specific failure reason. |
ObjectDisposedException | Thrown when the session is already disposed (terminal state). |
FatalErrorException | Thrown when an unrecoverable error occurs. |
See Also