| Package | Description |
|---|---|
| berlin.yuna.natsserver.logic |
| Modifier and Type | Method and Description |
|---|---|
Nats |
Nats.config(Map<NatsConfig,String> config)
Configures the nats server
|
Nats |
Nats.config(NatsConfig key,
String value)
Configures the nats server
|
Nats |
Nats.config(String... kv)
Configures the nats server
|
Nats |
Nats.start()
Starts the server in
ProcessBuilder with the given config config(String...) |
Nats |
Nats.start(long timeoutMs)
Starts the server in
ProcessBuilder with the given config config(String...) |
Nats |
Nats.stop()
Stops the
ProcessBuilder and kills the Nats
Only a log error will occur if the Nats were never started |
Nats |
Nats.stop(long timeoutMs)
Stops the
ProcessBuilder and kills the Nats
Only a log error will occur if the Nats were never started |
Nats |
Nats.tryStart()
Starts the server in
ProcessBuilder with the given parameterConfig config(String...)
Throws all exceptions as RuntimeException |
Nats |
Nats.tryStart(long timeoutMs)
Starts the server in
ProcessBuilder with the given config config(String...)
Throws all exceptions as RuntimeException |
Copyright © 2022. All rights reserved.