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
-
-
Constructor Summary
Constructors Constructor Description NatsServer(long timeoutMs)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
close, config, config, config, config, start, start, stop, stop, tryStart, tryStart
-
-
-
-
Field Detail
-
BEAN_NAME
public static final String BEAN_NAME
-
-
Constructor Detail
-
NatsServer
public NatsServer(long timeoutMs)
CreateNatsServerwith the simplest start able configuration- Parameters:
timeoutMs- tear down timeout
-
-
Method Detail
-
destroy
public void destroy()
Simply stops theNatsServer- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- See Also:
Nats.stop()
-
-