Class SystemdNotify

java.lang.Object
com.github.jpmsilva.jsystemd.SystemdNotify

public class SystemdNotify extends Object
Low level API that interfaces with systemd through a UnixDomainSocketAddress. Not meant for direct usage.
Author:
Joao Silva
See Also:
  • Constructor Details

    • SystemdNotify

      public SystemdNotify()
  • Method Details

    • registerShutdownHook

      public static void registerShutdownHook()
      Registers a JVM shutdown hook that closes the system integration channel.
      See Also:
    • close

      public static void close()
      Attempts to orderly close the systemd integration channel.

      Normally, the integration channel will be closed when the JVM shuts down.
      However, you may wish of explicitly close the integration channel, to ensure that all closeable resources are effectively closed.
      As such, this method should only be called at most once during the lifecycle of the JVM.