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
-
Field Summary
FieldsFields inherited from class berlin.yuna.natsserver.logic.Nats
configMap, name, NATS_PREFIX, terminal, timeoutMs -
Constructor Summary
ConstructorsConstructorDescriptionNatsServer(berlin.yuna.natsserver.config.NatsOptions options) CreateNatsServerwith the simplest start able configuration -
Method Summary
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, replaceEnds, sendStopSignal, setConfigFromNatsOptions, setConfigFromProperties, setDefaultConfig, setEnvConfig, setNextFreePort, shutdown, start, startProcess, toString, url, waitForShutDown
-
Field Details
-
BEAN_NAME
-
-
Constructor Details
-
NatsServer
public NatsServer(berlin.yuna.natsserver.config.NatsOptions options) CreateNatsServerwith the simplest start able configuration
-
-
Method Details
-
destroy
public void destroy()Simply stops theNatsServer- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- See Also:
-
Nats.close()
-