ICacheDataAdapter<TQueueMessage,TCachedMessage> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public interface ICacheDataAdapter<in TQueueMessage,TCachedMessage> where TCachedMessage : struct
type ICacheDataAdapter<'QueueMessage, 'CachedMessage (requires 'CachedMessage : struct)> = interface
Public Interface ICacheDataAdapter(Of In TQueueMessage, TCachedMessage)
Type Parameters
- TQueueMessage
- TCachedMessage
- Derived
Properties
OnBlockAllocated |
Should be set to OnBlockAllocated method of the cache's EvicationStrategy |
Methods
GetBatchContainer(TCachedMessage) |
Converts a cached message to a batch container for delivery |
GetMessageDequeueTimeUtc(TCachedMessage) |
Get cached message dequeue time |
GetMessageEnqueueTimeUtc(TCachedMessage) |
Get cached message enqueueTime |
GetSequenceToken(TCachedMessage) |
Gets the stream sequence token from a cached message. |
GetStreamPosition(TQueueMessage) |
Gets the stream position from a queue message |
QueueMessageToCachedMessage(TCachedMessage, TQueueMessage, DateTime) |
Converts a TQueueMessage message from the queue to a TCachedMessage cachable structures. |