JobId

public abstract class JobId implements Serializable

ID used to distinguish one job from others.

Fields

JOB_ID_KEY

public static final String JOB_ID_KEY

Constructors

JobId

public JobId(String subject, String id, String suffix)

Constructor.

Parameters:
  • subject – the subject of MotechEvent fired, when job is triggered, not null
  • id – the “JobID” parameter for MotechEvent fired, when job is triggered, not null
  • suffix – the type of job

JobId

public JobId(MotechEvent motechEvent, String suffix)

Constructor.

Parameters:
  • motechEvent – the MotechEvent fired, when job is triggered, not null
  • suffix – the type of job, not null

Methods

toString

public String toString()

value

public String value()

Returns jobs ID representation as String.

Returns:String representation of jobs ID