Class JobInstanceEvent
java.lang.Object
org.springframework.batch.core.Entity
org.springframework.cloud.task.batch.listener.support.JobInstanceEvent
- All Implemented Interfaces:
Serializable
public class JobInstanceEvent
extends org.springframework.batch.core.Entity
This is a JobInstance DTO created so that a
JobInstance
can be serialized into Json without
having to add mixins to an ObjectMapper.- Author:
- Glenn Renfro
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.batch.core.Entity
equals, getId, getVersion, hashCode, incrementVersion, setId, setVersion
-
Constructor Details
-
JobInstanceEvent
public JobInstanceEvent() -
JobInstanceEvent
-
-
Method Details
-
getJobName
- Returns:
- the job name. (Equivalent to getJob().getName())
-
toString
- Overrides:
toString
in classorg.springframework.batch.core.Entity
-
getInstanceId
public long getInstanceId()
-