Interface PackageTask
-
- All Known Implementing Classes:
PackageTaskImpl
@ProviderType public interface PackageTask
Describes a package operation task.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PackageTask.State
Task statestatic class
PackageTask.Type
Task type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable Throwable
getError()
Returns the error if there was one.@Nullable PackageTaskOptions
getOptions()
Returns the task optional options.@NotNull PackageId
getPackageId()
Returns the package id of this task.@NotNull PackageTask.State
getState()
Returns the task state@NotNull PackageTask.Type
getType()
Returns the task type.
-
-
-
Method Detail
-
getPackageId
@NotNull @NotNull PackageId getPackageId()
Returns the package id of this task.- Returns:
- the package id.
-
getType
@NotNull @NotNull PackageTask.Type getType()
Returns the task type.- Returns:
- the task type.
-
getOptions
@Nullable @Nullable PackageTaskOptions getOptions()
Returns the task optional options.- Returns:
- the task options (may be null).
-
getState
@NotNull @NotNull PackageTask.State getState()
Returns the task state- Returns:
- the task state
-
getError
@Nullable @Nullable Throwable getError()
Returns the error if there was one.- Returns:
- the error
-
-