Storage Backed Queue Demo

Overview

There is an example implementation of the storage backed queue Demo application available in the apps folder. In this implementation, it contains all the API functions and demos for how to use them.

Features

  • This application The structure is initialised, directory is created, and data is retrieved from the file.

  • In every API for this driver, the Structure input argument is provided by the user.

  • The sample application includes Test Suite APIs. The test suite API was used to test the storage backed queue driver API functions in a single shot with custom input.

Example Usecase

Data in a storage backed queue is pushed, popped, peeked, and flushed until the buffer reaches its maximum capacity. Data will be restored from the queue. Below is the use case for the storage backed queue operation.

Example input data:

****** MENU ******
1.To Insert the element in the SB queue
2.Pop the element in the SB queue
3.Peek the element in the SB queue
4.To get available messages
5.To remove invalid file from the SB queue
6.To flush the element in the SB queue
7.validate the sb_queue
8.Exit

Insert operation:
Enter the value :6
String data successfully pushed to the queue

Peek Operation:
Peek succeed
Peek Message Data :
0x6

PULL succeed
PULL Message Data :
0x6

Storage Backed Queue Module Driver

Please refer below section,