Class TimerRequest.Builder

    • Method Detail

      • buildImpl

        protected TimerRequest buildImpl()
        Returns a new TimerRequest instance based on the builder's current configuration. This method is called only after the builder configuration is successfully validated.
        Specified by:
        buildImpl in class EMessageObject.Builder<TimerRequest>
        Returns:
        new TimerRequest instance.
      • validate

        protected Validator validate​(Validator problems)
        Validates current builder configuration prior to building the TimerRequest instance. A valid configuration requires that:
        • timer name is set and
        • either time or delay set but not both.
        Overrides:
        validate in class EMessage.Builder<TimerRequest,​TimerRequest.Builder>
        Parameters:
        problems - add configuration problems to this Validator.
        Returns:
        problems to allow for Validator method chaining.
        See Also:
        Validator
      • timerName

        public TimerRequest.Builder timerName​(java.lang.String name)
        Sets the timer name.
        Parameters:
        name - timer name.
        Returns:
        this TimerReply builder.
        Throws:
        java.lang.IllegalArgumentException - if name is null or empty.