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.StringcommandName
-
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 TdoRPCCommand(CLightningSocket socket, java.util.Map<java.lang.String,java.lang.Object> payload)protected abstract java.lang.reflect.TypetoTypeFromClass()
-
-
-
Method Detail
-
doRPCCommand
public T doRPCCommand(CLightningSocket socket, java.util.Map<java.lang.String,java.lang.Object> payload) throws ServiceException, CommandException
- Specified by:
doRPCCommandin interfaceIRPCCommand<T>- Throws:
ServiceExceptionCommandException
-
toTypeFromClass
protected abstract java.lang.reflect.Type toTypeFromClass()
-
-