Package jrpc.clightning.commands
Class AbstractRPCCommand<T>
- java.lang.Object
-
- jrpc.clightning.commands.AbstractRPCCommand<T>
-
- All Implemented Interfaces:
IRPCCommand<T>
- Direct Known Subclasses:
CLightningCommandConnect
,CLightningCommandDecodePay
,CLightningCommandDisconnect
,CLightningCommandFeeRate
,CLightningCommandFundPSBT
,CLightningCommandGetRoute
,CLightningCommandHelp
,CLightningCommandListChannels
,CLightningCommandListConfigs
,CLightningCommandListNodes
,CLightningCommandListPays
,CLightningCommandListPeers
,CLightningCommandListSendPays
,CLightningCommandListTransactions
,CLightningCommandPay
,CLightningCommandPing
,CLightningCommandReserveInputs
,CLightningCommandSendPSBT
,CLightningCommandSignPSBT
,CLightningCommandStop
,CLightningCommandUnreserveInputs
,CLightningCommandWaitingInvoice
,CLightningCommandWaitSenDPay
public abstract class AbstractRPCCommand<T> extends java.lang.Object implements IRPCCommand<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
commandName
-
Constructor Summary
Constructors Constructor Description AbstractRPCCommand(java.lang.String commandName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
doRPCCommand(CLightningSocket socket, java.util.Map<java.lang.String,java.lang.Object> payload)
protected abstract java.lang.reflect.Type
toTypeFromClass()
-
-
-
Method Detail
-
doRPCCommand
public T doRPCCommand(CLightningSocket socket, java.util.Map<java.lang.String,java.lang.Object> payload) throws ServiceException, CommandException
- Specified by:
doRPCCommand
in interfaceIRPCCommand<T>
- Throws:
ServiceException
CommandException
-
toTypeFromClass
protected abstract java.lang.reflect.Type toTypeFromClass()
-
-