Class OperationsByAgentAndStatusPollerImpl
java.lang.Object
com.cumulocity.sdk.client.polling.FixedRatePoller
com.cumulocity.sdk.client.devicecontrol.autopoll.OperationsByAgentAndStatusPollerImpl
- All Implemented Interfaces:
Poller
This class is an implementation of OperationsPollerInterface, its responsibility is to poll device control REST API for
operations for given agent id. These operations are fetched and added to queue and there is a thread, which is polling
operations from this queue and process them (using Poller interface implementation).
-
Constructor Summary
ConstructorDescriptionOperationsByAgentAndStatusPollerImpl
(DeviceControlApi deviceControlApi, String agentId, OperationStatus status, OperationProcessor operationProcessor) -
Method Summary
Methods inherited from class com.cumulocity.sdk.client.polling.FixedRatePoller
getPeriod, getPollingTask, setPollingTask
-
Constructor Details
-
OperationsByAgentAndStatusPollerImpl
public OperationsByAgentAndStatusPollerImpl(DeviceControlApi deviceControlApi, String agentId, OperationStatus status, OperationProcessor operationProcessor) throws SDKException - Throws:
SDKException
-
-
Method Details
-
start
public boolean start()Description copied from interface:Poller
Starts poller- Specified by:
start
in interfacePoller
- Overrides:
start
in classFixedRatePoller
- Returns:
- true if the poller was successfully started
-
stop
public void stop()Description copied from interface:Poller
Stops poller after finishing all started jobs- Specified by:
stop
in interfacePoller
- Overrides:
stop
in classFixedRatePoller
-