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. More... | |
Public Member Functions inherited from kanzi::connect::WorkQueueInterface | |
| virtual | ~WorkQueueInterface () |
| Virtual destructor (for SWIG). More... | |
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. More... | |
| virtual void | cancelWorkItem (int64_t handle) |
| Cancels a work item holding an handle previously allocated using allocateUniqueHandle() More... | |
| virtual void | notifyItem (ConnectWorkItemSharedPtr workItem) |
| Function to call when there is work to be done. More... | |
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.