Class MicronautWalletAppKitService

java.lang.Object
org.consensusj.bitcoin.services.WalletAppKitService
org.consensusj.daemon.micronaut.MicronautWalletAppKitService
All Implemented Interfaces:
Closeable, AutoCloseable, BitcoinJsonRpc

@Singleton public class MicronautWalletAppKitService extends WalletAppKitService
Subclass of WalletAppKitService that implements the stop JSON-RPC method using Micronaut ApplicationContextLifeCycle.stop()
  • Constructor Details

  • Method Details

    • onStartup

      @EventListener public void onStartup(io.micronaut.runtime.server.event.ServerStartupEvent event)
    • onShutdown

      @EventListener public void onShutdown(io.micronaut.runtime.server.event.ServerShutdownEvent event)
    • stop

      Initiate server shutdown. This is a JSON-RPC method and will initiate but not complete server-shutdown because it must return a response to the client.
      Specified by:
      stop in interface BitcoinJsonRpc
      Overrides:
      stop in class WalletAppKitService
      Returns:
      A status string indicating the server is stopping