Class BatchStartedEvent

  • public class BatchStartedEvent
    extends Object
    Represents an event fired when a batch job starts.
    • Constructor Detail

      • BatchStartedEvent

        public BatchStartedEvent​(String jobIdIn,
                                 BatchStartedEvent.Data dataIn)
        Creates a new BatchStartedEvent
        jobIdIn - the id of the job
        dataIn - the data containing more information about this event
    • Method Detail

      • getJobId

        public String getJobId()
        The id of the job
        job id
      • parse

        public static Optional<BatchStartedEvent> parse​(Event event)
        Utility method to parse a generic event into a more specific one.
        event - the generic event to parse
        an option containing the parsed value or non if it could not be parsed