EventHubQueueCache
class
Namespace: Orleans.Streaming.EventHubs
EventHub queue cache
public class EventHubQueueCache : IEventHubQueueCache, IQueueFlowController, IDisposableConstructors
Properties
PartitionGets the Event Hub partition cached by this instance.
Methods
Add(List<EventData>, DateTime)Add a list of EventHub EventData to the cache.AddCachePressureMonitor(ICachePressureMonitor)Add cache pressure monitor to the cache's back pressure algorithmDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.GetCursor(StreamId, StreamSequenceToken?)Get a cursor into the cache to read events from a stream.GetMaxAddCountThe limit of the maximum number of items that can be addedRefresh(object, StreamSequenceToken?)Refreshes an inactive cursor at the provided sequence token.SignalPurgeSend purge signal to the cache, the cache will perform a time based purge on its cached messagesTryGetCursor(StreamId, StreamSequenceToken?)Attempts to get a cursor into the cache to read events from a stream.TryGetCursorAtPosition(StreamId, StreamSubscriptionStartPosition)Attempts to get a cursor into the cache at the specified subscription start position.TryGetNextMessage(object, IBatchContainer?)Try to get the next message in the cache for the provided cursor.TryGetNextMessageWithResult(object, IBatchContainer?)Attempts to get the next message in the cache for the provided cursor.
Fields
cacheUnderlying message cache implementation Protected for test purposes
