Class NatsStreamingServer

  • All Implemented Interfaces:
    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 String BEAN_NAME  
      • Fields inherited from class berlin.yuna.natsserver.logic.NatsBase

        NATS_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      NatsStreamingServer​(long timeoutMs)
      Create NatsStreaming with simplest start able configuration
    • Method Summary

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

        close, config, config, config, config, start, start, stop, stop, tryStart, tryStart
      • Methods inherited from class berlin.yuna.natsserver.logic.NatsBase

        args, args, binaryFile, downloadUrl, getValue, getValue, pid, pidFile, port, toString, url
    • Field Detail

      • BEAN_NAME

        public static final String BEAN_NAME
    • Constructor Detail

      • NatsStreamingServer

        public NatsStreamingServer​(long timeoutMs)
        Create NatsStreaming with simplest start able configuration
        Parameters:
        timeoutMs - tear down timeout
    • Method Detail

      • destroy

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