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 classGossipSync.NoneNo gossip sync.static classGossipSync.P2PGossip sync via the lightning peer-to-peer network as defined by BOLT 7.static classGossipSync.RapidRapid gossip sync from a trusted server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static GossipSyncnone()Utility method to constructs a new None-variant GossipSyncstatic GossipSyncp2_p(P2PGossipSync a)Utility method to constructs a new P2P-variant GossipSyncstatic GossipSyncrapid(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
-
-