@@ -103,7 +103,7 @@ public NatsServerRunner(boolean debug) throws IOException {
103103 * @throws IOException thrown when the server cannot start
104104 */
105105 public NatsServerRunner (boolean debug , boolean jetstream ) throws IOException {
106- this (builder ().debug (debug ).jetStream (jetstream ));
106+ this (builder ().debug (debug ).jetstream (jetstream ));
107107 }
108108
109109 /**
@@ -137,7 +137,7 @@ public NatsServerRunner(int port, boolean debug) throws IOException {
137137 * @throws IOException thrown when the server cannot start
138138 */
139139 public NatsServerRunner (int port , boolean debug , boolean jetstream ) throws IOException {
140- this (builder ().port (port ).debug (debug ).jetStream (jetstream ));
140+ this (builder ().port (port ).debug (debug ).jetstream (jetstream ));
141141 }
142142
143143 /**
@@ -173,7 +173,7 @@ public NatsServerRunner(String configFilePath, boolean debug) throws IOException
173173 * @throws IOException thrown when the server cannot start
174174 */
175175 public NatsServerRunner (String configFilePath , boolean debug , boolean jetstream ) throws IOException {
176- this (builder ().debug (debug ).jetStream (jetstream ).configFilePath (configFilePath ));
176+ this (builder ().debug (debug ).jetstream (jetstream ).configFilePath (configFilePath ));
177177 }
178178
179179 /**
@@ -263,7 +263,7 @@ public NatsServerRunner(String[] customArgs, boolean debug) throws IOException {
263263 * @throws IOException thrown when the server cannot start
264264 */
265265 public NatsServerRunner (String [] customArgs , boolean debug , boolean jetstream ) throws IOException {
266- this (builder ().debug (debug ).jetStream (jetstream ).customArgs (customArgs ));
266+ this (builder ().debug (debug ).jetstream (jetstream ).customArgs (customArgs ));
267267 }
268268
269269 /**
@@ -296,7 +296,7 @@ public NatsServerRunner(String[] customArgs, int port, boolean debug) throws IOE
296296 * @throws IOException thrown when the server cannot start
297297 */
298298 public NatsServerRunner (int port , boolean debug , boolean jetstream , String configFilePath , String [] configInserts , String [] customArgs ) throws IOException {
299- this (builder ().port (port ).debug (debug ).jetStream (jetstream ).configFilePath (configFilePath ).configInserts (configInserts ).customArgs (customArgs ));
299+ this (builder ().port (port ).debug (debug ).jetstream (jetstream ).configFilePath (configFilePath ).configInserts (configInserts ).customArgs (customArgs ));
300300 }
301301
302302 public NatsServerRunner (NatsServerRunnerOptions natsServerRunnerOptions ) throws Exception {
@@ -531,7 +531,7 @@ public void shutdown() throws InterruptedException {
531531 * For AutoCloseable, calls shutdown(true).
532532 */
533533 @ Override
534- public void close () throws InterruptedException {
534+ public void close () throws Exception {
535535 shutdown (true );
536536 }
537537
@@ -568,12 +568,12 @@ public Builder debug(boolean trueForDebugTraceFalseForNoDebug) {
568568 return this ;
569569 }
570570
571- public Builder jetStream () {
571+ public Builder jetstream () {
572572 this .jetstream = true ;
573573 return this ;
574574 }
575575
576- public Builder jetStream (boolean jetStream ) {
576+ public Builder jetstream (boolean jetStream ) {
577577 this .jetstream = jetStream ;
578578 return this ;
579579 }
@@ -660,7 +660,7 @@ public NatsServerRunner build() throws IOException {
660660 public Builder runnerOptions (NatsServerRunnerOptions nsro ) {
661661 port (nsro .port ())
662662 .debugLevel (nsro .debugLevel ())
663- .jetStream (nsro .jetStream ())
663+ .jetstream (nsro .jetStream ())
664664 .configFilePath (nsro .configFilePath ())
665665 .configInserts (nsro .configInserts ())
666666 .customArgs (nsro .customArgs ())
0 commit comments