Class DeviceCredentialsApiImpl
java.lang.Object
com.cumulocity.sdk.client.devicecontrol.DeviceCredentialsApiImpl
- All Implemented Interfaces:
DeviceCredentialsApi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeviceCredentialsApiImpl(PlatformParameters platformParameters, RestConnector restConnector) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(NewDeviceRequestRepresentation representation) Remove a device registration.pollCredentials(String deviceId) Executes single request to credentials endpointpollCredentials(String deviceId, int interval, int timeout) Schedule polling credentials task, invoking it at the specified execution time and subsequently with the given interval Execution will end after timeoutpollCredentials(String deviceId, PollingStrategy pollingStrategy) Device poll credentialsRegister a new device.
-
Field Details
-
DEVICE_CREDENTIALS_URI
- See Also:
-
DEVICE_REQUEST_URI
- See Also:
-
-
Constructor Details
-
DeviceCredentialsApiImpl
-
-
Method Details
-
register
Description copied from interface:DeviceCredentialsApiRegister a new device.- Specified by:
registerin interfaceDeviceCredentialsApi- Parameters:
id- external id of the device to register- Returns:
- new device request representation
-
delete
Description copied from interface:DeviceCredentialsApiRemove a device registration.- Specified by:
deletein interfaceDeviceCredentialsApi- Parameters:
representation- representation of new device request to delete
-
pollCredentials
Description copied from interface:DeviceCredentialsApiExecutes single request to credentials endpoint- Specified by:
pollCredentialsin interfaceDeviceCredentialsApi- Parameters:
deviceId- device unique identifier- Returns:
- device credentials representation
-
pollCredentials
Description copied from interface:DeviceCredentialsApiSchedule polling credentials task, invoking it at the specified execution time and subsequently with the given interval Execution will end after timeout- Specified by:
pollCredentialsin interfaceDeviceCredentialsApi- Parameters:
deviceId- device unique identifierinterval- - how often request is sent in secondstimeout- - after how many seconds polling process will expire- Returns:
- device credentials representation
-
pollCredentials
public DeviceCredentialsRepresentation pollCredentials(String deviceId, PollingStrategy pollingStrategy) Description copied from interface:DeviceCredentialsApiDevice poll credentials- Specified by:
pollCredentialsin interfaceDeviceCredentialsApi- Parameters:
deviceId- device unique identifierpollingStrategy- credentials polling strategy- Returns:
- device credentials representation
-