Class OperationsQueueHandler
java.lang.Object
com.cumulocity.sdk.client.devicecontrol.autopoll.OperationsQueueHandler
This class is responsible for polling queue for operations to be performed by
OperationProcessor instance. When operations is going to be performed, first
status of operationRep in REST is changed to "executing", then
OperationProcessor is triggered and after that status of operationRep in REST is
changed accordingly to return value of OperationProcessor instance.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOperationsQueueHandler
(OperationProcessor operationProcessor, OperationsQueue queue, DeviceControlApi deviceControlApi) -
Method Summary
-
Field Details
-
INTERNAL
- See Also:
-
-
Constructor Details
-
OperationsQueueHandler
public OperationsQueueHandler(OperationProcessor operationProcessor, OperationsQueue queue, DeviceControlApi deviceControlApi)
-
-
Method Details
-
stop
public void stop()Stops after finishing operation in progress -
start
public void start()Starts, if it's not started yet
-