Class BatchInfo


  • public class BatchInfo
    extends Object
    • Constructor Detail

      • BatchInfo

        public BatchInfo​(String name,
                         Calendar startedAt)
        Creates a new BatchInfo instance.
        Parameters:
        name - Name of batch or null if anonymous.
        startedAt - Batch start time
      • BatchInfo

        public BatchInfo()
    • Method Detail

      • getName

        public String getName()
        Returns:
        The name of the batch or null if anonymous.
      • getId

        public String getId()
        Returns:
        The id of the current batch.
      • setId

        public void setId​(String id)
        Sets a unique identifier for the batch. Sessions with batch info which includes the same ID will be grouped together.
        Parameters:
        id - The batch's ID
      • withBatchId

        public BatchInfo withBatchId​(String id)
        Sets a unique identifier for the batch and allows chaining of the id with the instance then returns that instance. Sessions with batch info which includes the same ID will be grouped together.
        Parameters:
        id - The batch's ID
        Returns:
        The updated BatchInfo instance.
      • getStartedAt

        public Calendar getStartedAt()
        Returns:
        The batch start date and time in ISO 8601 format.
      • setStartedAt

        public void setStartedAt​(String startedAt)
      • getSequenceName

        public String getSequenceName()
      • setSequenceName

        public void setSequenceName​(String sequenceName)
      • isNotifyOnCompletion

        public boolean isNotifyOnCompletion()
      • setNotifyOnCompletion

        public void setNotifyOnCompletion​(boolean notifyOnCompletion)
      • isCompleted

        public boolean isCompleted()
      • setCompleted

        public void setCompleted​(boolean completed)