Class NatsServer

java.lang.Object
berlin.yuna.natsserver.logic.Nats
berlin.yuna.natsserver.embedded.logic.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 final String
     

    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

    Modifier and Type
    Method
    Description
    void
    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, replaceEnds, sendStopSignal, setConfigFromNatsOptions, setConfigFromProperties, setDefaultConfig, setEnvConfig, setNextFreePort, shutdown, start, startProcess, toString, url, waitForShutDown

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • BEAN_NAME

      public static final String BEAN_NAME
  • Constructor Details

    • NatsServer

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

    • destroy

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