Class Systemd.Builder

java.lang.Object
com.github.jpmsilva.jsystemd.Systemd.Builder
Enclosing class:
Systemd

public static class Systemd.Builder
extends Object
Specialized build class of Systemd objects.
  • Constructor Details

  • Method Details

    • statusUpdate

      public Systemd.Builder statusUpdate​(long period, @NotNull @NotNull TimeUnit unit)
      Enables periodic status updates.
      Parameters:
      period - the period to use
      unit - the time unit of the period
      Returns:
      the same builder instance
    • extendTimeout

      public Systemd.Builder extendTimeout​(long period, @NotNull @NotNull TimeUnit unit, long timeout)
      Enables periodic timeout extensions.
      Parameters:
      period - the period to use
      unit - the time unit of the period
      timeout - the amount of time to extend the timeout in microseconds
      Returns:
      the same builder instance
    • watchdog

      public Systemd.Builder watchdog​(long period, @NotNull @NotNull TimeUnit unit)
      Enables periodic watchdog timestamp updates.
      Parameters:
      period - the period to use - must be greater than 0; if 0 this method does nothing
      unit - the time unit of the period
      Returns:
      the same builder instance
    • build

      public Systemd build()
      Builds a Systemd instance.
      Returns:
      the instance built