Package net.osslabz.lnd.dto
Class LnrpcPeer
java.lang.Object
net.osslabz.lnd.dto.LnrpcPeer
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcPeer
extends Object
LnrpcPeer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddErrorsItem(LnrpcTimestampedError errorsItem) booleanerrors(List<LnrpcTimestampedError> errors) features(Map<String, LnrpcFeature> features) Get addressGet bytesRecvGet bytesSentThe latest errors received from our peer with timestamps, limited to the 10 most recent errors.Features advertised by the remote peer in their init message.The number of times we have recorded this peer going offline or coming online, recorded across restarts.Get inboundThe timestamp of the last flap we observed for this peer.byte[]The last ping payload the peer has sent to us.Get pingTimeGet pubKeyGet satRecvGet satSentGet syncTypeinthashCode()lastFlapNs(String lastFlapNs) lastPingPayload(byte[] lastPingPayload) putFeaturesItem(String key, LnrpcFeature featuresItem) voidsetAddress(String address) voidsetBytesRecv(String bytesRecv) voidsetBytesSent(String bytesSent) voidsetErrors(List<LnrpcTimestampedError> errors) voidsetFeatures(Map<String, LnrpcFeature> features) voidsetFlapCount(Integer flapCount) voidsetInbound(Boolean inbound) voidsetLastFlapNs(String lastFlapNs) voidsetLastPingPayload(byte[] lastPingPayload) voidsetPingTime(String pingTime) voidvoidsetSatRecv(String satRecv) voidsetSatSent(String satSent) voidsetSyncType(PeerSyncType syncType) syncType(PeerSyncType syncType) toString()
-
Field Details
-
SERIALIZED_NAME_PUB_KEY
- See Also:
-
SERIALIZED_NAME_ADDRESS
- See Also:
-
SERIALIZED_NAME_BYTES_SENT
- See Also:
-
SERIALIZED_NAME_BYTES_RECV
- See Also:
-
SERIALIZED_NAME_SAT_SENT
- See Also:
-
SERIALIZED_NAME_SAT_RECV
- See Also:
-
SERIALIZED_NAME_INBOUND
- See Also:
-
SERIALIZED_NAME_PING_TIME
- See Also:
-
SERIALIZED_NAME_SYNC_TYPE
- See Also:
-
SERIALIZED_NAME_FEATURES
- See Also:
-
SERIALIZED_NAME_ERRORS
- See Also:
-
SERIALIZED_NAME_FLAP_COUNT
- See Also:
-
SERIALIZED_NAME_LAST_FLAP_NS
- See Also:
-
SERIALIZED_NAME_LAST_PING_PAYLOAD
- See Also:
-
-
Constructor Details
-
LnrpcPeer
public LnrpcPeer()
-
-
Method Details
-
pubKey
-
getPubKey
Get pubKey- Returns:
- pubKey
-
setPubKey
-
address
-
getAddress
Get address- Returns:
- address
-
setAddress
-
bytesSent
-
getBytesSent
Get bytesSent- Returns:
- bytesSent
-
setBytesSent
-
bytesRecv
-
getBytesRecv
Get bytesRecv- Returns:
- bytesRecv
-
setBytesRecv
-
satSent
-
getSatSent
Get satSent- Returns:
- satSent
-
setSatSent
-
satRecv
-
getSatRecv
Get satRecv- Returns:
- satRecv
-
setSatRecv
-
inbound
-
getInbound
Get inbound- Returns:
- inbound
-
setInbound
-
pingTime
-
getPingTime
Get pingTime- Returns:
- pingTime
-
setPingTime
-
syncType
-
getSyncType
Get syncType- Returns:
- syncType
-
setSyncType
-
features
-
putFeaturesItem
-
getFeatures
Features advertised by the remote peer in their init message.- Returns:
- features
-
setFeatures
-
errors
-
addErrorsItem
-
getErrors
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.- Returns:
- errors
-
setErrors
-
flapCount
-
getFlapCount
The number of times we have recorded this peer going offline or coming online, recorded across restarts. Note that this value is decreased over time if the peer has not recently flapped, so that we can forgive peers with historically high flap counts.- Returns:
- flapCount
-
setFlapCount
-
lastFlapNs
-
getLastFlapNs
The timestamp of the last flap we observed for this peer. If this value is zero, we have not observed any flaps for this peer.- Returns:
- lastFlapNs
-
setLastFlapNs
-
lastPingPayload
-
getLastPingPayload
@Nullable public byte[] getLastPingPayload()The last ping payload the peer has sent to us.- Returns:
- lastPingPayload
-
setLastPingPayload
public void setLastPingPayload(byte[] lastPingPayload) -
equals
-
hashCode
public int hashCode() -
toString
-