Class NatsStreamingServer

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean

    public class NatsStreamingServer
    extends berlin.yuna.natsserver.logic.NatsStreaming
    implements org.springframework.beans.factory.DisposableBean
    • Field Detail

      • BEAN_NAME

        public static final String BEAN_NAME
    • Constructor Detail

      • NatsStreamingServer

        public NatsStreamingServer​(long timeoutMs,
                                   String... natsServerConfig)
        Create custom NatsStreamingServer with simplest configuration NatsStreaming.config(String...)
        Parameters:
        timeoutMs - tear down timeout
        natsServerConfig - passes the original parameters to the server. example: port:4222, user:admin, password:admin
      • NatsStreamingServer

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

      • source

        public NatsStreamingServer source​(String natsServerUrl)
        Url to find nats server source
        Overrides:
        source in class berlin.yuna.natsserver.logic.NatsStreaming
        Parameters:
        natsServerUrl - url of the source NatsStreamingSourceConfig
        Returns:
        NatsStreamingServer
      • getNatsServerPath

        protected Path getNatsServerPath​(berlin.yuna.clu.logic.SystemUtil.OperatingSystem operatingSystem)
        Overrides:
        getNatsServerPath in class berlin.yuna.natsserver.logic.NatsStreaming
      • destroy

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