Skip to content

CachedMessageBlock

class

Namespace: Orleans.Providers.Streams.Common

CachedMessageBlock is a block of tightly packed structures containing tracking data for cached messages. This data is tightly packed to reduced GC pressure. The tracking data is used by the queue cache to walk the cache serving ordered queue messages by stream.
public class CachedMessageBlock : PooledResource<CachedMessageBlock>

Constructors

Properties

  • HasCapacity Gets a value indicating whether more messages can be added to the block.
  • IsEmpty Gets a value indicating whether this block is empty.
  • ItemCount Gets the number of messages in this block.
  • NewestMessage Gets the newest message in this block.
  • NewestMessageIndex Gets the index of most recent message added to the block.
  • Node Linked list node, so this message block can be kept in a linked list.
  • OldestMessage Gets the oldest message in the block.
  • OldestMessageIndex Gets the index of the oldest message in this block.

Methods

Indexers

  • this[int] Access the cached message at the provided index.