Package com.ultikits.ultitools.utils
Class CloudSession.DevicePoll
java.lang.Object
com.ultikits.ultitools.utils.CloudSession.DevicePoll
- Enclosing class:
CloudSession
The mutable state of one device-code poll; touched only by its poll steps, one at a time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longEpoch milliseconds after which the code counts as expired.private final DeviceAuthorizationClient.Grantprivate longThe current interval; grows byCloudSession.DEVICE_SLOW_DOWN_INCREMENT_MSper slow_down.private final CloudAuthManager.DeviceLoginListener -
Constructor Summary
ConstructorsConstructorDescriptionDevicePoll(DeviceAuthorizationClient.Grant grant, CloudAuthManager.DeviceLoginListener listener, long deadline, long intervalMillis) -
Method Summary
-
Field Details
-
grant
-
listener
-
deadline
private final long deadlineEpoch milliseconds after which the code counts as expired. -
intervalMillis
private long intervalMillisThe current interval; grows byCloudSession.DEVICE_SLOW_DOWN_INCREMENT_MSper slow_down.
-
-
Constructor Details
-
DevicePoll
DevicePoll(DeviceAuthorizationClient.Grant grant, CloudAuthManager.DeviceLoginListener listener, long deadline, long intervalMillis)
-