Redigera

Dela via


MemoryPooledCache<TSerializer> Class

Definition

Pooled cache for memory stream provider

public class MemoryPooledCache<TSerializer> : Orleans.Streams.IQueueCache where TSerializer : class, IMemoryMessageBodySerializer
public class MemoryPooledCache<TSerializer> : Orleans.Providers.Streams.Common.ICacheDataAdapter, Orleans.Streams.IQueueCache where TSerializer : class, IMemoryMessageBodySerializer
type MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> IMemoryMessageBodySerializer)> = class
    interface IQueueCache
    interface IQueueFlowController
type MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> IMemoryMessageBodySerializer)> = class
    interface IQueueCache
    interface IQueueFlowController
    interface ICacheDataAdapter
Public Class MemoryPooledCache(Of TSerializer)
Implements IQueueCache
Public Class MemoryPooledCache(Of TSerializer)
Implements ICacheDataAdapter, IQueueCache

Type Parameters

TSerializer
Inheritance
MemoryPooledCache<TSerializer>
Implements

Constructors

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, Nullable<TimeSpan>, Nullable<TimeSpan>)

Pooled cache for memory stream provider.

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, Nullable<TimeSpan>)

Pooled cache for memory stream provider

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, Logger, TSerializer, ICacheMonitor, Nullable<TimeSpan>)

Pooled cache for memory 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