public class RoutingPolicy extends Message<LightningApi.RoutingPolicy>
Message
,
LightningApi.RoutingPolicy
Modifier and Type | Class and Description |
---|---|
static class |
RoutingPolicy.CustomRecordsEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
RoutingPolicy.CustomRecordsEntry
Inner class CustomRecordsEntry for class RoutingPolicy.
|
Modifier and Type | Field and Description |
---|---|
protected RoutingPolicy.CustomRecordsEntries |
customRecordsEntries |
builder, wrapperFactory
Constructor and Description |
---|
RoutingPolicy()
Empty Constructor
|
RoutingPolicy(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
RoutingPolicy(LightningApi.RoutingPolicy apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,byte[]> |
getCustomRecordsAsDetachedMap()
Returns customRecords as a detached map.
|
RoutingPolicy.CustomRecordsEntries |
getCustomRecordsEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
boolean |
getDisabled()
Getter for disabled.
|
long |
getFeeBaseMsat()
Getter for feeBaseMsat.
|
long |
getFeeRateMilliMsat()
Getter for feeRateMilliMsat.
|
int |
getLastUpdate()
Getter for lastUpdate.
|
long |
getMaxHtlcMsat()
Getter for maxHtlcMsat.
|
long |
getMinHtlc()
Getter for minHtlc.
|
int |
getTimeLockDelta()
Getter for timeLockDelta.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
Populates customRecords with all the values in the map.
|
void |
setCustomRecordsEntries(RoutingPolicy.CustomRecordsEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setDisabled(boolean value)
Setter for disabled.
|
void |
setFeeBaseMsat(long value)
Setter for feeBaseMsat.
|
void |
setFeeRateMilliMsat(long value)
Setter for feeRateMilliMsat.
|
void |
setLastUpdate(int value)
Setter for lastUpdate.
|
void |
setMaxHtlcMsat(long value)
Setter for maxHtlcMsat.
|
void |
setMinHtlc(long value)
Setter for minHtlc.
|
void |
setTimeLockDelta(int value)
Setter for timeLockDelta.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected RoutingPolicy.CustomRecordsEntries customRecordsEntries
public RoutingPolicy()
public RoutingPolicy(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public RoutingPolicy(LightningApi.RoutingPolicy apiObject)
public int getTimeLockDelta()
public void setTimeLockDelta(int value)
public long getMinHtlc()
public void setMinHtlc(long value)
public long getFeeBaseMsat()
public void setFeeBaseMsat(long value)
public long getFeeRateMilliMsat()
public void setFeeRateMilliMsat(long value)
public boolean getDisabled()
public void setDisabled(boolean value)
public long getMaxHtlcMsat()
public void setMaxHtlcMsat(long value)
public int getLastUpdate()
public void setLastUpdate(int value)
public java.util.Map<java.lang.Long,byte[]> getCustomRecordsAsDetachedMap()
public void setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
public RoutingPolicy.CustomRecordsEntries getCustomRecordsEntries()
public void setCustomRecordsEntries(RoutingPolicy.CustomRecordsEntries entries)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.RoutingPolicy>