Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ITaskStatus

interface ITaskStatus
Extends com.amazon.apmf.IStandard The ITaskStatus provides information about a submitted Task.

Methods

getTaskState()

TaskState getTaskState()
Get the state of the Task.

Returns

TaskState The Task state.

getFailureCount()

i32 getFailureCount()
Get the number of times this Task has failed. In case of repeating tasks the failure count resets after a successful completion of the task.

Returns

i32 The failure count.

getSuccessCount()

i32 getSuccessCount()
Get the number of times this Task has successfully run to completion during its lifespan. The count does not include failures. Task may be configured to repeat using time or messaging constraints.

Returns

i32 The repeat count.
Last modified on October 29, 2026