Edytuj

Udostępnij za pośrednictwem


GeneratorPooledCache Class

Definition

Pooled cache for generator stream provider.

public class GeneratorPooledCache : Orleans.Streams.IQueueCache
public class GeneratorPooledCache : Orleans.Providers.Streams.Common.ICacheDataAdapter, Orleans.Streams.IQueueCache
type GeneratorPooledCache = class
    interface IQueueCache
    interface IQueueFlowController
type GeneratorPooledCache = class
    interface IQueueCache
    interface IQueueFlowController
    interface ICacheDataAdapter
Public Class GeneratorPooledCache
Implements IQueueCache
Public Class GeneratorPooledCache
Implements ICacheDataAdapter, IQueueCache
Inheritance
GeneratorPooledCache
Implements

Constructors

GeneratorPooledCache(IObjectPool<FixedSizeBuffer>, ILogger, SerializationManager, ICacheMonitor, Nullable<TimeSpan>)

Pooled cache for generator stream provider

GeneratorPooledCache(IObjectPool<FixedSizeBuffer>, ILogger, Serializer, ICacheMonitor, Nullable<TimeSpan>)

Pooled cache for generator stream provider.

GeneratorPooledCache(IObjectPool<FixedSizeBuffer>, Logger, SerializationManager, ICacheMonitor, Nullable<TimeSpan>)

Pooled cache for generator stream provider

Methods

AddToCache(IList<IBatchContainer>)

Add messages to the cache

GetBatchContainer(CachedMessage)

Converts a cached message to a batch container for delivery

GetCacheCursor(IStreamIdentity, 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.

GetCacheCursor(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.

GetMaxAddCount()

The limit of the maximum number of items that can be added

GetSequenceToken(CachedMessage)

Gets the stream sequence token from a cached message.

IsUnderPressure()

Returns true if this cache is under pressure.

TryPurgeFromCache(IList<IBatchContainer>)

Ask the cache if it has items that can be purged from the cache (so that they can be subsequently released them the underlying queue).

Applies to