Class 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 String BEAN_NAME  
      • 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
    • Field Detail

      • BEAN_NAME

        public static final String BEAN_NAME
    • Constructor Detail

      • NatsServer

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

      • destroy

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