Package org.ldk.structs
Class GossipSync
- java.lang.Object
-
- org.ldk.structs.GossipSync
-
- Direct Known Subclasses:
GossipSync.None
,GossipSync.P2P
,GossipSync.Rapid
public class GossipSync extends Object
Either [`P2PGossipSync`] or [`RapidGossipSync`].
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GossipSync.None
No gossip sync.static class
GossipSync.P2P
Gossip sync via the lightning peer-to-peer network as defined by BOLT 7.static class
GossipSync.Rapid
Rapid gossip sync from a trusted server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
static GossipSync
none()
Utility method to constructs a new None-variant GossipSyncstatic GossipSync
p2_p(P2PGossipSync a)
Utility method to constructs a new P2P-variant GossipSyncstatic GossipSync
rapid(RapidGossipSync a)
Utility method to constructs a new Rapid-variant GossipSync
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
p2_p
public static GossipSync p2_p(P2PGossipSync a)
Utility method to constructs a new P2P-variant GossipSync
-
rapid
public static GossipSync rapid(RapidGossipSync a)
Utility method to constructs a new Rapid-variant GossipSync
-
none
public static GossipSync none()
Utility method to constructs a new None-variant GossipSync
-
-