centraldogma icon indicating copy to clipboard operation
centraldogma copied to clipboard

Asynchronous startup/shutdown API

Open trustin opened this issue 7 years ago • 1 comments

CentralDogma.start() and stop() are synchronous, and we could make it asynchronous like Server in Armeria. Asynchronous startup/shutdown API is mainly useful when you want to start or stop a CentralDogma cluster concurrently without introducing additional threads and signaling code.

Perhaps we could generalize the code in Armeria Server and make it usable in CentralDogma and CommandExecutor implementations.

Resolving this issue would change the behavior and signature of CentralDogma.start() and stop().

trustin avatar Aug 22 '18 10:08 trustin

https://github.com/line/armeria/pull/1344

trustin avatar Aug 23 '18 12:08 trustin