All Downloads are FREE. Search and download functionalities are using the official Maven repository.

berlin.yuna.natsserver.embedded.logic.NatsServer Maven / Gradle / Ivy

There is a newer version: 2.10.23-rc.4
Show newest version
package berlin.yuna.natsserver.embedded.logic;

import berlin.yuna.natsserver.config.NatsOptions;
import berlin.yuna.natsserver.logic.Nats;
import org.springframework.beans.factory.DisposableBean;

/**
 * {@link NatsServer}
 */
public class NatsServer extends Nats implements DisposableBean {

    public static final String BEAN_NAME = NatsServer.class.getSimpleName();

    /**
     * Create {@link NatsServer} with the simplest start able configuration
     */
    public NatsServer(final NatsOptions options) {
        super(options);
    }

    /**
     * Simply stops the {@link NatsServer}
     *
     * @see NatsServer#close()
     */
    @Override
    public void destroy() {
        close();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy