Package org.nuxeo.ecm.core.api
Interface AsyncStatus<K extends Serializable>
- Type Parameters:
K
- type of task id
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BulkStatus
Interface to be implemented by asynchronous services' statuses.
- Since:
- 10.3
-
Method Details
-
getId
K getId()Gets the asynchronous task id. -
isCompleted
boolean isCompleted()Returns true if command is completed. -
getErrorMessage
Gets the error message if any.- Returns:
- the error message if any,
null
otherwise - Since:
- 11.5
-
getErrorCode
default int getErrorCode()Gets the error code if any.- Returns:
- the error code if any,
0
otherwise - Since:
- 11.5
-
hasError
default boolean hasError()Checks if there is any error.- Returns:
true
if there is any error,false
otherwise- Since:
- 11.5
-