Skip to content

PooledQueueCache.TryGetNextMessage(object, IBatchContainer?)

TryGetNextMessage(object, IBatchContainer?)

View source
[System.Obsolete(Use TryGetNextMessageWithResult instead.)]
public bool TryGetNextMessage(object cursorObj, out IBatchContainer? message)
Acquires the next message in the cache at the provided cursor

Parameters

cursorObjobject
messageIBatchContainer?

Returns

true when a message was returned; otherwise, false.

Exceptions

System.ArgumentNullException
cursorObj is null.
System.ArgumentOutOfRangeException
cursorObj is not a cache cursor.
Orleans.Streams.QueueCacheMissException
The cursor position is older than the messages retained by the cache.