GeneratorPooledCache
class
Namespace: Orleans.Providers.Streams.Generator
Pooled cache for generator stream provider.
public class GeneratorPooledCache : ICacheDataAdapter, IQueueCache, IQueueFlowControllerConstructors
GeneratorPooledCache(IObjectPool<FixedSizeBuffer>, ILogger, Serializer, ICacheMonitor, TimeSpan?)Pooled cache for generator stream provider.
Methods
AddToCache(IList<IBatchContainer>)Adds messages to the cache.GetBatchContainer(CachedMessage)Converts a cached message to a batch container for deliveryGetCacheCursor(StreamId, StreamSequenceToken)Acquire a stream message cursor. This can be used to retrieve messages from the cache starting at the location indicated by the provided token.GetMaxAddCountGets the maximum number of items that can be added.GetSequenceToken(CachedMessage)Gets the stream sequence token from a cached message.IsUnderPressureReturnstrueif this cache is under pressure,falseotherwise.TryPurgeFromCache(IList<IBatchContainer>)Requests that the cache purge any items that can be purged.
