public static interface LightningApi.PeerOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsFeatures(int key)
Features advertised by the remote peer in their init message.
|
java.lang.String |
getAddress()
Network address of the peer; eg `127.0.0.1:10011`
|
com.google.protobuf.ByteString |
getAddressBytes()
Network address of the peer; eg `127.0.0.1:10011`
|
long |
getBytesRecv()
Bytes of data transmitted from this peer
|
long |
getBytesSent()
Bytes of data transmitted to this peer
|
LightningApi.TimestampedError |
getErrors(int index)
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
int |
getErrorsCount()
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
java.util.List<LightningApi.TimestampedError> |
getErrorsList()
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
LightningApi.TimestampedErrorOrBuilder |
getErrorsOrBuilder(int index)
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
java.util.List<? extends LightningApi.TimestampedErrorOrBuilder> |
getErrorsOrBuilderList()
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeatures()
Deprecated.
|
int |
getFeaturesCount()
Features advertised by the remote peer in their init message.
|
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeaturesMap()
Features advertised by the remote peer in their init message.
|
LightningApi.Feature |
getFeaturesOrDefault(int key,
LightningApi.Feature defaultValue)
Features advertised by the remote peer in their init message.
|
LightningApi.Feature |
getFeaturesOrThrow(int key)
Features advertised by the remote peer in their init message.
|
int |
getFlapCount()
The number of times we have recorded this peer going offline or coming
online, recorded across restarts.
|
boolean |
getInbound()
A channel is inbound if the counterparty initiated the channel
|
long |
getLastFlapNs()
The timestamp of the last flap we observed for this peer.
|
com.google.protobuf.ByteString |
getLastPingPayload()
The last ping payload the peer has sent to us.
|
long |
getPingTime()
Ping time to this peer
|
java.lang.String |
getPubKey()
The identity pubkey of the peer
|
com.google.protobuf.ByteString |
getPubKeyBytes()
The identity pubkey of the peer
|
long |
getSatRecv()
Satoshis received from this peer
|
long |
getSatSent()
Satoshis sent to this peer
|
LightningApi.Peer.SyncType |
getSyncType()
The type of sync we are currently performing with this peer.
|
int |
getSyncTypeValue()
The type of sync we are currently performing with this peer.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
java.lang.String getPubKey()
The identity pubkey of the peer
string pub_key = 1;
com.google.protobuf.ByteString getPubKeyBytes()
The identity pubkey of the peer
string pub_key = 1;
java.lang.String getAddress()
Network address of the peer; eg `127.0.0.1:10011`
string address = 3;
com.google.protobuf.ByteString getAddressBytes()
Network address of the peer; eg `127.0.0.1:10011`
string address = 3;
long getBytesSent()
Bytes of data transmitted to this peer
uint64 bytes_sent = 4;
long getBytesRecv()
Bytes of data transmitted from this peer
uint64 bytes_recv = 5;
long getSatSent()
Satoshis sent to this peer
int64 sat_sent = 6;
long getSatRecv()
Satoshis received from this peer
int64 sat_recv = 7;
boolean getInbound()
A channel is inbound if the counterparty initiated the channel
bool inbound = 8;
long getPingTime()
Ping time to this peer
int64 ping_time = 9;
int getSyncTypeValue()
The type of sync we are currently performing with this peer.
.lnrpc.Peer.SyncType sync_type = 10;
LightningApi.Peer.SyncType getSyncType()
The type of sync we are currently performing with this peer.
.lnrpc.Peer.SyncType sync_type = 10;
int getFeaturesCount()
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;
boolean containsFeatures(int key)
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;
@Deprecated java.util.Map<java.lang.Integer,LightningApi.Feature> getFeatures()
getFeaturesMap()
instead.java.util.Map<java.lang.Integer,LightningApi.Feature> getFeaturesMap()
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;
LightningApi.Feature getFeaturesOrDefault(int key, LightningApi.Feature defaultValue)
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;
LightningApi.Feature getFeaturesOrThrow(int key)
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;
java.util.List<LightningApi.TimestampedError> getErrorsList()
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.
repeated .lnrpc.TimestampedError errors = 12;
LightningApi.TimestampedError getErrors(int index)
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.
repeated .lnrpc.TimestampedError errors = 12;
int getErrorsCount()
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.
repeated .lnrpc.TimestampedError errors = 12;
java.util.List<? extends LightningApi.TimestampedErrorOrBuilder> getErrorsOrBuilderList()
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.
repeated .lnrpc.TimestampedError errors = 12;
LightningApi.TimestampedErrorOrBuilder getErrorsOrBuilder(int index)
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.
repeated .lnrpc.TimestampedError errors = 12;
int 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.
int32 flap_count = 13;
long 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.
int64 last_flap_ns = 14;
com.google.protobuf.ByteString getLastPingPayload()
The last ping payload the peer has sent to us.
bytes last_ping_payload = 15;