Class NatsServer

java.lang.Object
berlin.yuna.natsserver.logic.NatsBase
berlin.yuna.natsserver.logic.Nats
berlin.yuna.natsserver.embedded.logic.NatsServer
All Implemented Interfaces:
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.NatsBase

    NATS_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    NatsServer(long timeoutMs)
    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

    close, config, config, config, config, start, start, stop, stop, tryStart, tryStart

    Methods inherited from class berlin.yuna.natsserver.logic.NatsBase

    args, args, binaryFile, downloadUrl, getConfigFile, getValue, getValue, pid, pidFile, port, toString, url

    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(long timeoutMs)
      Create NatsServer with the simplest start able configuration
      Parameters:
      timeoutMs - tear down timeout
  • Method Details

    • destroy

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