Interface PackageTask
- All Known Implementing Classes:
PackageTaskImpl
@ProviderType
public interface PackageTask
Describes a package operation task.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumTask statestatic enumTask type -
Method Summary
Modifier and TypeMethodDescription@Nullable ThrowablegetError()Returns the error if there was one.@Nullable PackageTaskOptionsReturns the task optional options.@NotNull PackageIdReturns the package id of this task.@NotNull PackageTask.StategetState()Returns the task state@NotNull PackageTask.TypegetType()Returns the task type.
-
Method Details
-
getPackageId
Returns the package id of this task.- Returns:
- the package id.
-
getType
Returns the task type.- Returns:
- the task type.
-
getOptions
Returns the task optional options.- Returns:
- the task options (may be null).
-
getState
Returns the task state- Returns:
- the task state
-
getError
Returns the error if there was one.- Returns:
- the error
-