public class Peer extends Message<LightningApi.Peer>
Message
,
LightningApi.Peer
Modifier and Type | Class and Description |
---|---|
static class |
Peer.FeaturesEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
Peer.FeaturesEntry
Inner class FeaturesEntry for class Peer.
|
static class |
Peer.SyncType
Inner enum SyncType for class Peer
Generated Automatically.
|
Modifier and Type | Field and Description |
---|---|
protected Peer.FeaturesEntries |
featuresEntries |
builder, wrapperFactory
Constructor and Description |
---|
Peer()
Empty Constructor
|
Peer(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
Peer(LightningApi.Peer apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Getter for address.
|
long |
getBytesRecv()
Getter for bytesRecv.
|
long |
getBytesSent()
Getter for bytesSent.
|
java.util.List<TimestampedError> |
getErrors()
Getter for a list of errors.
|
java.util.Map<java.lang.Integer,Feature> |
getFeaturesAsDetachedMap()
Returns features as a detached map.
|
Peer.FeaturesEntries |
getFeaturesEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
int |
getFlapCount()
Getter for flapCount.
|
boolean |
getInbound()
Getter for inbound.
|
long |
getLastFlapNs()
Getter for lastFlapNs.
|
byte[] |
getLastPingPayload()
Getter for lastPingPayload.
|
long |
getPingTime()
Getter for pingTime.
|
java.lang.String |
getPubKey()
Getter for pubKey.
|
long |
getSatRecv()
Getter for satRecv.
|
long |
getSatSent()
Getter for satSent.
|
Peer.SyncType |
getSyncType()
Getter for syncType.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAddress(java.lang.String value)
Setter for address.
|
void |
setBytesRecv(long value)
Setter for bytesRecv.
|
void |
setBytesSent(long value)
Setter for bytesSent.
|
void |
setErrors(java.util.List<TimestampedError> valueList)
Setter for list of errors.
|
void |
setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
Populates features with all the values in the map.
|
void |
setFeaturesEntries(Peer.FeaturesEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setFlapCount(int value)
Setter for flapCount.
|
void |
setInbound(boolean value)
Setter for inbound.
|
void |
setLastFlapNs(long value)
Setter for lastFlapNs.
|
void |
setLastPingPayload(byte[] value)
Setter for lastPingPayload.
|
void |
setPingTime(long value)
Setter for pingTime.
|
void |
setPubKey(java.lang.String value)
Setter for pubKey.
|
void |
setSatRecv(long value)
Setter for satRecv.
|
void |
setSatSent(long value)
Setter for satSent.
|
void |
setSyncType(Peer.SyncType value)
Setter for syncType.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected Peer.FeaturesEntries featuresEntries
public Peer()
public Peer(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public Peer(LightningApi.Peer apiObject)
public java.lang.String getPubKey()
public void setPubKey(java.lang.String value)
public java.lang.String getAddress()
public void setAddress(java.lang.String value)
public long getBytesSent()
public void setBytesSent(long value)
public long getBytesRecv()
public void setBytesRecv(long value)
public long getSatSent()
public void setSatSent(long value)
public long getSatRecv()
public void setSatRecv(long value)
public boolean getInbound()
public void setInbound(boolean value)
public long getPingTime()
public void setPingTime(long value)
public Peer.SyncType getSyncType()
public void setSyncType(Peer.SyncType value)
public java.util.Map<java.lang.Integer,Feature> getFeaturesAsDetachedMap()
public void setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
public Peer.FeaturesEntries getFeaturesEntries()
public void setFeaturesEntries(Peer.FeaturesEntries entries)
public java.util.List<TimestampedError> getErrors() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setErrors(java.util.List<TimestampedError> valueList)
public int getFlapCount()
public void setFlapCount(int value)
public long getLastFlapNs()
public void setLastFlapNs(long value)
public byte[] getLastPingPayload()
public void setLastPingPayload(byte[] value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.Peer>