public class BackendServicesRouter extends Object implements HttpRouter, Registry.ChangeListener<BackendService>
HttpHandler implementation.| Constructor and Description |
|---|
BackendServicesRouter(BackendServiceClientFactory clientFactory,
Environment environment,
NettyExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
onChange(Registry.Changes<BackendService> changes) |
Optional<HttpHandler> |
route(LiveHttpRequest request,
HttpInterceptor.Context ignore) |
public BackendServicesRouter(BackendServiceClientFactory clientFactory, Environment environment, NettyExecutor executor)
public Optional<HttpHandler> route(LiveHttpRequest request, HttpInterceptor.Context ignore)
route in interface HttpRouterpublic void onChange(Registry.Changes<BackendService> changes)
onChange in interface Registry.ChangeListener<BackendService>Copyright © 2013–2020 Hotels.com. All rights reserved.