Package pro.taskana.common.api
Class ScheduledJob
- java.lang.Object
-
- pro.taskana.common.api.ScheduledJob
-
public class ScheduledJob extends Object
This class holds all data that go into the Job table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScheduledJob.StateThis enum tracks the state of a job.static classScheduledJob.TypeThis enum controls the type of a job.
-
Constructor Summary
Constructors Constructor Description ScheduledJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,String>getArguments()InstantgetCreated()InstantgetDue()IntegergetJobId()StringgetLockedBy()InstantgetLockExpires()IntegergetPriority()intgetRetryCount()ScheduledJob.StategetState()ScheduledJob.TypegetType()inthashCode()voidsetArguments(Map<String,String> arguments)voidsetCreated(Instant created)voidsetDue(Instant due)voidsetJobId(Integer jobId)voidsetLockedBy(String lockedBy)voidsetLockExpires(Instant lockExpires)voidsetPriority(Integer priority)voidsetRetryCount(int retryCount)voidsetState(ScheduledJob.State state)voidsetType(ScheduledJob.Type type)StringtoString()
-
-
-
Method Detail
-
getJobId
public Integer getJobId()
-
setJobId
public void setJobId(Integer jobId)
-
getPriority
public Integer getPriority()
-
setPriority
public void setPriority(Integer priority)
-
getCreated
public Instant getCreated()
-
setCreated
public void setCreated(Instant created)
-
getDue
public Instant getDue()
-
setDue
public void setDue(Instant due)
-
getState
public ScheduledJob.State getState()
-
setState
public void setState(ScheduledJob.State state)
-
getLockedBy
public String getLockedBy()
-
setLockedBy
public void setLockedBy(String lockedBy)
-
getLockExpires
public Instant getLockExpires()
-
setLockExpires
public void setLockExpires(Instant lockExpires)
-
getType
public ScheduledJob.Type getType()
-
setType
public void setType(ScheduledJob.Type type)
-
getRetryCount
public int getRetryCount()
-
setRetryCount
public void setRetryCount(int retryCount)
-
-