Class DefaultRouter


  • public class DefaultRouter
    extends Object
    A [`Router`] implemented using [`find_route`].
    • Method Detail

      • 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