Package org.springframework.cloud.task.batch.listener.support

# 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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JobInstanceEvent()`
  `JobInstanceEvent(Long id, String jobName)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getInstanceId()`
  `String`
  `getJobName()`
  `String`
  `toString()`

  ### Methods inherited from class org.springframework.batch.core.Entity

  `equals, getId, getVersion, hashCode, incrementVersion, setId, setVersion`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JobInstanceEvent

    public JobInstanceEvent()

  - ### JobInstanceEvent

    public JobInstanceEvent(Long id, String jobName)

- ## Method Details

  - ### getJobName

    public String getJobName()
    Returns:
      the job name. (Equivalent to getJob().getName())

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `org.springframework.batch.core.Entity`

  - ### getInstanceId

    public long getInstanceId()