Package org.ldk.structs
Class DefaultRouter
- java.lang.Object
-
- org.ldk.structs.DefaultRouter
-
public class DefaultRouter extends Object
A [`Router`] implemented using [`find_route`].
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Routeras_Router()Constructs a new Router which calls the relevant methods on this_arg.protected voidfinalize()static DefaultRouterof(NetworkGraph network_graph, Logger logger, byte[] random_seed_bytes)Creates a new router using the given [`NetworkGraph`], a [`Logger`], and a randomness source `random_seed_bytes`.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static DefaultRouter of(NetworkGraph network_graph, Logger logger, byte[] random_seed_bytes)
Creates a new router using the given [`NetworkGraph`], a [`Logger`], and a randomness source `random_seed_bytes`.
-
as_Router
public Router as_Router()
Constructs a new Router which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned Router must be freed before this_arg is
-
-