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
        Parameters:
        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
        Returns:
        job id
      • parse

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