Package org.consensusj.daemon.micronaut
Class MicronautWalletAppKitService
java.lang.Object
org.consensusj.bitcoin.services.WalletAppKitService
org.consensusj.daemon.micronaut.MicronautWalletAppKitService
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BitcoinJsonRpc
Subclass of
WalletAppKitService
that implements the stop
JSON-RPC method using
Micronaut ApplicationContextLifeCycle.stop()
-
Field Summary
Fields inherited from class org.consensusj.bitcoin.services.WalletAppKitService
hexFormat, kit, mapper, network
Fields inherited from interface org.consensusj.bitcoin.json.rpc.BitcoinJsonRpc
DEFAULT_MAX_CONF, DEFAULT_MIN_CONF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onShutdown
(io.micronaut.runtime.server.event.ServerShutdownEvent event) void
onStartup
(io.micronaut.runtime.server.event.ServerStartupEvent event) stop()
Initiate server shutdown.Methods inherited from class org.consensusj.bitcoin.services.WalletAppKitService
close, createrawtransaction, createTemporary, createTemporaryWallet, getbalance, getbestblockhash, getblock, getblock2, getblockchaininfo, getblockcount, getblockhash, getblockheader, getblockheader2, getBlockInfo, getconnectioncount, getnetworkinfo, getnewaddress, getPeerGroup, help, listunspent, network, result, sendrawtransaction, sendtoaddress, signrawtransactionwithwallet, start
-
Constructor Details
-
MicronautWalletAppKitService
-
-
Method Details
-
onStartup
-
onShutdown
-
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 interfaceBitcoinJsonRpc
- Overrides:
stop
in classWalletAppKitService
- Returns:
- A status string indicating the server is stopping
-