Class Timeout.Builder

    • Method Detail

      • build

        public Timeout build()
        Description copied from interface: Builder
        Build the instance from this builder.
        Specified by:
        build in interface Builder<Timeout>
        Returns:
        instance of the built type
      • timeout

        public Timeout.Builder timeout​(Duration timeout)
        Timeout duration.
        Parameters:
        timeout - duration of the timeout of operations handled by the new Timeout instance
        Returns:
        updated builder instance
      • executor

        public Timeout.Builder executor​(ScheduledExecutorService executor)
        Executor service to schedule the timeout.
        Parameters:
        executor - scheduled executor service to use
        Returns:
        updated builder instance