Class NatsStreamingServer
java.lang.Object
berlin.yuna.natsserver.logic.NatsBase
berlin.yuna.natsserver.logic.NatsStreaming
berlin.yuna.natsserver.streaming.embedded.logic.NatsStreamingServer
- All Implemented Interfaces:
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.NatsBase
NATS_PREFIX
-
Constructor Summary
ConstructorDescriptionNatsStreamingServer
(long timeoutMs) CreateNatsStreaming
with simplest start able configuration -
Method Summary
Methods inherited from class berlin.yuna.natsserver.logic.NatsStreaming
close, config, config, config, config, start, start, stop, stop, tryStart, tryStart
Methods inherited from class berlin.yuna.natsserver.logic.NatsBase
args, args, binaryFile, downloadUrl, getValue, getValue, pid, pidFile, port, toString, url
-
Field Details
-
BEAN_NAME
-
-
Constructor Details
-
NatsStreamingServer
public NatsStreamingServer(long timeoutMs) CreateNatsStreaming
with simplest start able configuration- Parameters:
timeoutMs
- tear down timeout
-
-
Method Details
-
destroy
public void destroy()Simply stops theNatsStreaming
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- See Also:
-
NatsStreaming.stop()
-