com.cumulocity.sdk.client.devicecontrol.autopoll
Class OperationsQueueHandler
java.lang.Object
com.cumulocity.sdk.client.devicecontrol.autopoll.OperationsQueueHandler
public class OperationsQueueHandler
- extends Object
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.
Method Summary |
void |
start()
Starts, if it's not started yet |
void |
stop()
Stops after finishing operation in progress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERNAL
public static final String INTERNAL
- See Also:
- Constant Field Values
OperationsQueueHandler
public OperationsQueueHandler(OperationProcessor operationProcessor,
OperationsQueue queue,
DeviceControlApi deviceControlApi)
stop
public void stop()
- Stops after finishing operation in progress
start
public void start()
- Starts, if it's not started yet
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.