Package net.solarnetwork.central.domain
Interface ClaimableJobState
public interface ClaimableJobState
API for a claimable job state.
At a basic level, jobs are added to a work queue and start in a "queued" state. Some worker process can then claim ownership a "queued" job and change the state to "claimed" and then "executing". Once the job is finished, the worker process changes the state to "completed".
- Since:
- 1.44
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charThe standard key for a "claimed" state.static final charThe standard key for a "completed" state.static final charThe standard key for a "executing" state.static final charThe standard key for a "queued" state.static final charThe standard key for a "unknwon" state. -
Method Summary
-
Field Details
-
UNKNOWN_KEY
static final char UNKNOWN_KEYThe standard key for a "unknwon" state.- See Also:
-
QUEUED_KEY
static final char QUEUED_KEYThe standard key for a "queued" state.- See Also:
-
CLAIMED_KEY
static final char CLAIMED_KEYThe standard key for a "claimed" state.- See Also:
-
EXECUTING_KEY
static final char EXECUTING_KEYThe standard key for a "executing" state.- See Also:
-
COMPLETED_KEY
static final char COMPLETED_KEYThe standard key for a "completed" state.- See Also:
-
-
Method Details
-
getKey
char getKey()Get a unique key for this state.- Returns:
- the state key
-