Package org.ldk.structs
Class Persister
- java.lang.Object
-
- org.ldk.structs.Persister
-
public class Persister extends Object
Trait that handles persisting a [`ChannelManager`], [`NetworkGraph`], and [`MultiThreadedLockableScore`] to disk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePersister.PersisterInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static Persisternew_impl(Persister.PersisterInterface arg)Result_NoneErrorZpersist_graph(NetworkGraph network_graph)Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.Result_NoneErrorZpersist_manager(ChannelManager channel_manager)Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.Result_NoneErrorZpersist_scorer(MultiThreadedLockableScore scorer)Persist the given [`MultiThreadedLockableScore`] to disk, returning an error if persistence failed.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
new_impl
public static Persister new_impl(Persister.PersisterInterface arg)
-
persist_manager
public Result_NoneErrorZ persist_manager(ChannelManager channel_manager)
Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
-
persist_graph
public Result_NoneErrorZ persist_graph(NetworkGraph network_graph)
Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.
-
persist_scorer
public Result_NoneErrorZ persist_scorer(MultiThreadedLockableScore scorer)
Persist the given [`MultiThreadedLockableScore`] to disk, returning an error if persistence failed.
-
-