Class NatsStreamingServer
java.lang.Object
berlin.yuna.natsserver.logic.NatsStreaming
berlin.yuna.natsserver.streaming.embedded.logic.NatsStreamingServer
- All Implemented Interfaces:
io.nats.commons.NatsInterface
,AutoCloseable
,org.springframework.beans.factory.DisposableBean
public class NatsStreamingServer
extends berlin.yuna.natsserver.logic.NatsStreaming
implements org.springframework.beans.factory.DisposableBean
-
Field Summary
Fields inherited from class berlin.yuna.natsserver.logic.NatsStreaming
configMap, name, NATS_PREFIX, terminal, timeoutMs
-
Constructor Summary
ConstructorDescriptionNatsStreamingServer
(berlin.yuna.natsserver.config.NatsStreamingOptions options) CreateNatsStreaming
with the simplest start able configuration -
Method Summary
Methods inherited from class berlin.yuna.natsserver.logic.NatsStreaming
addConfig, addConfig, binary, close, config, configFile, configPropertyFile, customArgs, debug, deletePidFile, downloadNats, downloadUrl, getValue, getValue, jetStream, logger, loggingLevel, pid, pidFile, port, prepareCommand, process, sendStopSignal, setConfigFromNatsStreamingOptions, setConfigFromProperties, setDefaultConfig, setEnvConfig, setNextFreePort, shutdown, start, startProcess, toString, url, waitForShutDown
-
Field Details
-
BEAN_NAME
-
-
Constructor Details
-
NatsStreamingServer
public NatsStreamingServer(berlin.yuna.natsserver.config.NatsStreamingOptions options) CreateNatsStreaming
with the simplest start able configuration- Parameters:
options
- nats options / config
-
-
Method Details
-
destroy
public void destroy()Simply stops theNatsStreaming
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- See Also:
-
NatsStreaming.close()
-