Class NatsStreamingServer

java.lang.Object
berlin.yuna.natsserver.logic.NatsStreaming
berlin.yuna.natsserver.streaming.embedded.logic.NatsStreamingServer
All Implemented Interfaces:
io.nats.commons.NatsInterface, AutoCloseable, org.springframework.beans.factory.DisposableBean

public class NatsStreamingServer extends berlin.yuna.natsserver.logic.NatsStreaming 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.NatsStreaming

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

    Constructors
    Constructor
    Description
    NatsStreamingServer(berlin.yuna.natsserver.config.NatsStreamingOptions options)
    Create NatsStreaming with the simplest start able configuration
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Simply stops the NatsStreaming

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

    addConfig, addConfig, binary, close, config, configFile, configPropertyFile, customArgs, debug, deletePidFile, downloadNats, downloadUrl, getValue, getValue, jetStream, logger, loggingLevel, pid, pidFile, port, prepareCommand, process, sendStopSignal, setConfigFromNatsStreamingOptions, 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

    • NatsStreamingServer

      public NatsStreamingServer(berlin.yuna.natsserver.config.NatsStreamingOptions options)
      Create NatsStreaming with the simplest start able configuration
      Parameters:
      options - nats options / config
  • Method Details

    • destroy

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