Class NatsServer

  • All Implemented Interfaces:
    io.nats.commons.NatsInterface, AutoCloseable, org.springframework.beans.factory.DisposableBean

    public class NatsServer
    extends berlin.yuna.natsserver.logic.Nats
    implements org.springframework.beans.factory.DisposableBean
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String BEAN_NAME  
      • Fields inherited from class berlin.yuna.natsserver.logic.Nats

        configMap, name, NATS_PREFIX, terminal, timeoutMs
    • Constructor Summary

      Constructors 
      Constructor Description
      NatsServer​(berlin.yuna.natsserver.config.NatsOptions options)
      Create NatsServer with the simplest start able configuration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Simply stops the NatsServer
      • Methods inherited from class berlin.yuna.natsserver.logic.Nats

        addConfig, addConfig, binary, close, config, configFile, configPropertyFile, customArgs, debug, deletePidFile, downloadNats, downloadUrl, getValue, getValue, jetStream, logger, loggingLevel, pid, pidFile, port, prepareCommand, process, sendStopSignal, setConfigFromNatsOptions, setConfigFromProperties, setDefaultConfig, setEnvConfig, setNextFreePort, shutdown, start, startProcess, toString, url, waitForShutDown
    • Field Detail

      • BEAN_NAME

        public static final String BEAN_NAME
    • Constructor Detail

      • NatsServer

        public NatsServer​(berlin.yuna.natsserver.config.NatsOptions options)
        Create NatsServer with the simplest start able configuration
    • Method Detail

      • destroy

        public void destroy()
        Simply stops the NatsServer
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        See Also:
        Nats.close()