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. | |
virtual void | cancelWorkItem (int64_t handle) |
Cancels a work item holding an handle previously allocated using allocateUniqueHandle() | |
virtual void | notifyItem (ConnectWorkItemSharedPtr workItem)=0 |
Function to call when there is work to be done. | |
virtual | ~WorkQueueInterface () |
Virtual destructor (for SWIG). | |
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::WorkQueueProxyInterface, and kanzi::connect::Client.
|
inlinevirtual |
Cancels a work item holding an handle previously allocated using allocateUniqueHandle()
handle | the handle. |
Reimplemented in kanzi::connect::WorkQueueProxyInterface, and kanzi::connect::Client.
|
pure virtual |
Function to call when there is work to be done.
workItem | item to be put into work queue |
Implemented in kanzi::connect::WorkQueueProxyInterface, and kanzi::connect::Client.