private static Consumer<Config> overrideWithAdvertisedAddress( String host, int port ) { return config -> config.augment( new BoltConnector( "bolt" ).advertised_address.name(), AdvertisedSocketAddress.advertisedAddress( host, port ) ); }
private static Consumer<Config> overrideWithListenAddress( String host, int port ) { return config -> config.augment( new BoltConnector( "bolt" ).listen_address.name(), AdvertisedSocketAddress.advertisedAddress( host, port ) ); }