QueueEntry Struct Reference

A struct holding the necessary queue entry informations used by I_Queue. More...

#include <QueueInterface.h>

Collaboration diagram for QueueEntry:

Collaboration graph
[legend]

Data Fields

int64_t uniqueId
 The unique key, used for sorting, usually a time stamp [nano sec].
int16_t priority
 The priority of the queue entry, has higher sorting order than than the time stamp.
int isPersistent
 Mark an entry to be persistent, needed for cache implementations, 'T' is true, 'F' is false.
int64_t sizeInBytes
 The size of this entry which is given by the client and used to sum up queue->numOfBytes, if 0 we use the size of the blob.
char embeddedType [28]
 A string describing this entry, for example the format of the blob.
BlobHolder embeddedBlob
 blob.data is allocated with malloc, you need to free() it yourself, is compressed if marked as such

Detailed Description

A struct holding the necessary queue entry informations used by I_Queue.

Definition at line 47 of file QueueInterface.h.


Field Documentation

int64_t QueueEntry::uniqueId

The unique key, used for sorting, usually a time stamp [nano sec].

Is assumed to be ascending over time.

Definition at line 48 of file QueueInterface.h.

Referenced by parseQueueEntryArr(), persistentQueuePut(), persistentQueueRandomRemove(), queueEntryToXml(), and test_queue().

int16_t QueueEntry::priority

The priority of the queue entry, has higher sorting order than than the time stamp.

Definition at line 49 of file QueueInterface.h.

Referenced by parseQueueEntryArr(), persistentQueuePut(), queueEntryToXml(), and test_queue().

int QueueEntry::isPersistent

Mark an entry to be persistent, needed for cache implementations, 'T' is true, 'F' is false.

'F' in persistent queue is a swapped transient entry

Definition at line 50 of file QueueInterface.h.

Referenced by parseQueueEntryArr(), persistentQueuePut(), queueEntryToXml(), and test_queue().

int64_t QueueEntry::sizeInBytes

The size of this entry which is given by the client and used to sum up queue->numOfBytes, if 0 we use the size of the blob.

Definition at line 51 of file QueueInterface.h.

Referenced by persistentQueuePut(), and persistentQueueRandomRemove().

char QueueEntry::embeddedType[28]

A string describing this entry, for example the format of the blob.

Definition at line 52 of file QueueInterface.h.

Referenced by parseQueueEntryArr(), persistentQueuePut(), and queueEntryToXml().

BlobHolder QueueEntry::embeddedBlob

blob.data is allocated with malloc, you need to free() it yourself, is compressed if marked as such

Definition at line 53 of file QueueInterface.h.

Referenced by freeQueueEntryData(), parseQueueEntryArr(), persistentQueuePut(), persistentQueueRandomRemove(), queueEntryToXml(), and test_queue().


The documentation for this struct was generated from the following file: