public class SameInstancePreferenceServiceInstanceListSupplier extends DelegatingServiceInstanceListSupplier implements SelectedInstanceCallback
ServiceInstanceListSupplier
that selects the previously
chosen instance if it's available.delegate
Constructor and Description |
---|
SameInstancePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<List<ServiceInstance>> |
get() |
String |
getServiceId() |
void |
selectedServiceInstance(ServiceInstance serviceInstance)
Passes the selected
ServiceInstance as an argument. |
afterPropertiesSet, destroy, getDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, get
public SameInstancePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate)
public String getServiceId()
getServiceId
in interface ServiceInstanceListSupplier
getServiceId
in class DelegatingServiceInstanceListSupplier
public reactor.core.publisher.Flux<List<ServiceInstance>> get()
get
in interface Supplier<reactor.core.publisher.Flux<List<ServiceInstance>>>
public void selectedServiceInstance(ServiceInstance serviceInstance)
SelectedInstanceCallback
ServiceInstance
as an argument.selectedServiceInstance
in interface SelectedInstanceCallback
serviceInstance
- that has been selectedCopyright © 2021 Pivotal Software, Inc.. All rights reserved.