Class HistoricRequest.Builder

    • Method Detail

      • validate

        protected net.sf.eBus.util.Validator validate​(net.sf.eBus.util.Validator problems)
        Checks if this builder is correctly configured before building target message instance. A valid HistoricRequest requires that the time interval is set. Calls super.validate to check super class fields.
        Overrides:
        validate in class EMessage.Builder<HistoricRequest,​HistoricRequest.Builder>
        Parameters:
        problems - place invalid fields into this list.
        Returns:
        problems is returned to all method chaining.
      • interval

        public HistoricRequest.Builder interval​(EInterval interval)
        Sets the historic notification interval. This interval must be entirely in the past.
        Parameters:
        interval - retrieve notifications over this historic date/time interval.
        Returns:
        this Builder instance.
        Throws:
        NullPointerException - if interval is null.
        IllegalArgumentException - if interval.endTime > the current wall clock time.