Interface for the work queue. Used to propagate work items from services to event-based work loop. More...
#include <work_queue_interface.hpp>
Public Member Functions | |
| virtual int64_t | allocateUniqueHandle () |
| Optionally implementable method that should return a handle that can later on be used cancel work item holding that identifier. More... | |
| virtual void | cancelWorkItem (int64_t handle) |
| Cancels a work item holding an handle previously allocated using allocateUniqueHandle() More... | |
| virtual void | notifyItem (ConnectWorkItemSharedPtr workItem)=0 |
| Function to call when there is work to be done. More... | |
| virtual | ~WorkQueueInterface () |
| Virtual destructor (for SWIG). More... | |
Interface for the work queue. Used to propagate work items from services to event-based work loop.
|
inlinevirtual |
Virtual destructor (for SWIG).
|
inlinevirtual |
Optionally implementable method that should return a handle that can later on be used cancel work item holding that identifier.
Reimplemented in kanzi::connect::Client, and kanzi::connect::WorkQueueProxyInterface.
|
inlinevirtual |
Cancels a work item holding an handle previously allocated using allocateUniqueHandle()
| handle | the handle. |
Reimplemented in kanzi::connect::Client, and kanzi::connect::WorkQueueProxyInterface.
|
pure virtual |
Function to call when there is work to be done.
| workItem | item to be put into work queue |
Implemented in kanzi::connect::Client, and kanzi::connect::WorkQueueProxyInterface.