Package org.stellar.sdk.xdr
Class TopologyResponseBodyV1
java.lang.Object
org.stellar.sdk.xdr.TopologyResponseBodyV1
TopologyResponseBodyV1's original definition in the XDR file is:
struct TopologyResponseBodyV1 { PeerStatList inboundPeers; PeerStatList outboundPeers; uint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; uint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionTopologyResponseBodyV1
(PeerStatList inboundPeers, PeerStatList outboundPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static TopologyResponseBodyV1
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static TopologyResponseBodyV1
fromXdrBase64
(String xdr) static TopologyResponseBodyV1
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setInboundPeers
(PeerStatList inboundPeers) void
setMaxInboundPeerCount
(Uint32 maxInboundPeerCount) void
setMaxOutboundPeerCount
(Uint32 maxOutboundPeerCount) void
setOutboundPeers
(PeerStatList outboundPeers) void
setTotalInboundPeerCount
(Uint32 totalInboundPeerCount) void
setTotalOutboundPeerCount
(Uint32 totalOutboundPeerCount) toString()
default String
default byte[]
-
Constructor Details
-
TopologyResponseBodyV1
public TopologyResponseBodyV1() -
TopologyResponseBodyV1
public TopologyResponseBodyV1(PeerStatList inboundPeers, PeerStatList outboundPeers, Uint32 totalInboundPeerCount, Uint32 totalOutboundPeerCount, Uint32 maxInboundPeerCount, Uint32 maxOutboundPeerCount)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getInboundPeers
-
getOutboundPeers
-
getTotalInboundPeerCount
-
getTotalOutboundPeerCount
-
getMaxInboundPeerCount
-
getMaxOutboundPeerCount
-
setInboundPeers
-
setOutboundPeers
-
setTotalInboundPeerCount
-
setTotalOutboundPeerCount
-
setMaxInboundPeerCount
-
setMaxOutboundPeerCount
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-