Package com.github.jpmsilva.jsystemd
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 Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Systemdbuild()Builds aSystemdinstance.Systemd.BuilderextendTimeout(long period, @NotNull TimeUnit unit, long timeout)Enables periodic timeout extensions.Systemd.BuilderstatusUpdate(long period, @NotNull TimeUnit unit)Enables periodic status updates.Systemd.Builderwatchdog(long period, @NotNull TimeUnit unit)Enables periodic watchdog timestamp updates.
-
Constructor Details
-
Builder
public Builder()
-
-
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 aSystemdinstance.- Returns:
- the instance built
-