Skip to content

ICacheDataAdapter Methods

Pooled queue cache stores data in tightly packed structures that need to be transformed to various other formats quickly. Since the data formats may change by queue type and data format, this interface allows adapter developers to build custom data transforms appropriate for the various types of queue data.

GetBatchContainer(CachedMessage)

abstract
public abstract IBatchContainer GetBatchContainer(ref CachedMessage cachedMessage)
Converts a cached message to a batch container for delivery

Parameters

cachedMessageCachedMessage
The cached message.

Returns

The batch container.

GetSequenceToken(CachedMessage)

abstract
public abstract StreamSequenceToken GetSequenceToken(ref CachedMessage cachedMessage)
Gets the stream sequence token from a cached message.

Parameters

cachedMessageCachedMessage
The cached message.

Returns

The sequence token.