Proxy for Work Queue -> encapsulates the service instance. More...
#include <work_queue_interface.hpp>
Public Member Functions | |
WorkQueueProxyInterface (AbstractServiceSharedPtr service, WorkQueueInterface *proxiedInterface) | |
Constructs a proxy object that bounds the service into the work queue interface. | |
![]() | |
virtual | ~WorkQueueInterface () |
Virtual destructor (for SWIG). | |
Protected 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) |
Function to call when there is work to be done. | |
Proxy for Work Queue -> encapsulates the service instance.
kanzi::connect::WorkQueueProxyInterface::WorkQueueProxyInterface | ( | AbstractServiceSharedPtr | service, |
WorkQueueInterface * | proxiedInterface ) |
Constructs a proxy object that bounds the service into the work queue interface.
service | encapsulated service |
proxiedInterface | the interface that gets proxied. |
|
protectedvirtual |
Optionally implementable method that should return a handle that can later on be used cancel work item holding that identifier.
Reimplemented from kanzi::connect::WorkQueueInterface.
|
protectedvirtual |
Cancels a work item holding an handle previously allocated using allocateUniqueHandle()
handle | the handle. |
Reimplemented from kanzi::connect::WorkQueueInterface.
|
protectedvirtual |
Function to call when there is work to be done.
workItem | item to be put into work queue |
Implements kanzi::connect::WorkQueueInterface.