AddToCache(IList<IBatchContainer>)
abstract
public abstract void AddToCache(IList<IBatchContainer> messages) Adds messages to the cache.
Parameters
messagesIList<IBatchContainer>- The message batches.
public abstract void AddToCache(IList<IBatchContainer> messages)messagesIList<IBatchContainer>[System.Obsolete(Use TryGetCacheCursor instead.)]public abstract IQueueCacheCursor GetCacheCursor(StreamId streamId, StreamSequenceToken? token)streamIdStreamIdtokenStreamSequenceToken?Orleans.Streams.QueueCacheMissExceptionpublic abstract bool IsUnderPressure()true if this cache is under pressure, false otherwise. true if this cache is under pressure; otherwise, false.public virtual QueueCacheCursorResult<IQueueCacheCursor> TryGetCacheCursor(StreamId streamId, StreamSequenceToken? token)streamIdStreamIdtokenStreamSequenceToken?public virtual QueueCacheCursorResult<IQueueCacheCursor> TryGetCacheCursorAtPosition(StreamId streamId, StreamSubscriptionStartPosition startPosition)streamIdStreamIdstartPositionStreamSubscriptionStartPositionQueueCacheCursorResultKind. System.ArgumentOutOfRangeExceptionstartPosition is not defined.public abstract bool TryPurgeFromCache(out IList<IBatchContainer> purgedItems)purgedItemsIList<IBatchContainer>true if items were successfully purged from the cache., false otherwise.public virtual void UpdateDeliveryProgress(StreamSequenceToken? earliestSubscriptionToken, DateTime utcNow)earliestSubscriptionTokenStreamSequenceToken?null value indicates that there are no active subscriptions. The token is only valid for the duration of the call and must not be stored. utcNowDateTime