public ManagedServiceBuilder enableConsulServiceDiscovery ( final String dataCenter ) { final ConsulServiceDiscoveryBuilder consulServiceDiscoveryBuilder = consulServiceDiscoveryBuilder ( ) ; consulServiceDiscoveryBuilder . setDatacenter ( dataCenter ) ; serviceDiscoverySupplier = consulServiceDiscoveryBuilder :: build ; return this ; }
Enable consul discovery