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