Class NatsServer
- java.lang.Object
-
- berlin.yuna.natsserver.logic.Nats
-
- berlin.yuna.natsserver.embedded.logic.NatsServer
-
- All Implemented Interfaces:
io.nats.commons.NatsInterface,AutoCloseable,org.springframework.beans.factory.DisposableBean
public class NatsServer extends berlin.yuna.natsserver.logic.Nats implements org.springframework.beans.factory.DisposableBean
-
-
Constructor Summary
Constructors Constructor Description NatsServer(berlin.yuna.natsserver.config.NatsOptions options)CreateNatsServerwith the simplest start able configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Simply stops theNatsServer-
Methods inherited from class berlin.yuna.natsserver.logic.Nats
addConfig, addConfig, binary, close, config, configFile, configPropertyFile, customArgs, debug, deletePidFile, downloadNats, downloadUrl, getValue, getValue, jetStream, logger, loggingLevel, pid, pidFile, port, prepareCommand, process, sendStopSignal, setConfigFromNatsOptions, setConfigFromProperties, setDefaultConfig, setEnvConfig, setNextFreePort, shutdown, start, startProcess, toString, url, waitForShutDown
-
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
-
-
Constructor Detail
-
NatsServer
public NatsServer(berlin.yuna.natsserver.config.NatsOptions options)
CreateNatsServerwith the simplest start able configuration
-
-
Method Detail
-
destroy
public void destroy()
Simply stops theNatsServer- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- See Also:
Nats.close()
-
-