Class NatsStreamingServer

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

    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

    Modifier and Type
    Method
    Description
    void
    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

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

    • destroy

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