Package com.github.jpmsilva.jsystemd
Class Systemd.Builder
java.lang.Object
com.github.jpmsilva.jsystemd.Systemd.Builder
- Enclosing class:
Systemd
Specialized build class of
Systemd
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSystemd
instance.extendTimeout
(long period, @NotNull TimeUnit unit, long timeout) Enables periodic timeout extensions.statusUpdate
(long period, @NotNull TimeUnit unit) Enables periodic status updates.Enables periodic watchdog timestamp updates.
-
Method Details
-
statusUpdate
Enables periodic status updates.- Parameters:
period
- the period to useunit
- the time unit of the period- Returns:
- the same builder instance
-
extendTimeout
Enables periodic timeout extensions.- Parameters:
period
- the period to useunit
- the time unit of the periodtimeout
- the amount of time to extend the timeout in microseconds- Returns:
- the same builder instance
-
watchdog
Enables periodic watchdog timestamp updates.- Parameters:
period
- the period to use - must be greater than 0; if 0 this method does nothingunit
- the time unit of the period- Returns:
- the same builder instance
-
build
Builds aSystemd
instance.- Returns:
- the instance built
-