Interface PackageTask
-
@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 java.lang.Throwable
getError()
Returns the error if there was one.PackageId
getPackageId()
Returns the package id of this task.PackageTask.State
getState()
Returns the task statePackageTask.Type
getType()
Returns the task type.
-
-
-
Method Detail
-
getPackageId
@Nonnull PackageId getPackageId()
Returns the package id of this task.- Returns:
- the package id.
-
getType
@Nonnull PackageTask.Type getType()
Returns the task type.- Returns:
- the task type.
-
getState
@Nonnull PackageTask.State getState()
Returns the task state- Returns:
- the task state
-
getError
@Nullable java.lang.Throwable getError()
Returns the error if there was one.- Returns:
- the error
-
-