public final class Eureka2Clients
extends java.lang.Object
Eureka2EnabledNIWSServerList to get its Eureka2 client.
This is a workaround for sharing single Eureka2 client, as ServerList instance
creation is done with reflection, with no support for injection.| Modifier and Type | Method and Description |
|---|---|
static com.netflix.eureka2.client.EurekaInterestClient |
getInterestClient() |
static boolean |
isUseEureka2()
In case both Eureka1 and Eureka2 clients are available, indicate which one should be used.
|
static com.netflix.eureka2.client.EurekaInterestClient |
setInterestClient(com.netflix.eureka2.client.EurekaInterestClient interestClient) |
static boolean |
setUseEureka2(boolean useEureka2) |
public static boolean isUseEureka2()
CompositeEurekaEnabledNIWSServerList to decide to which client discard
the request.public static boolean setUseEureka2(boolean useEureka2)
public static com.netflix.eureka2.client.EurekaInterestClient getInterestClient()
public static com.netflix.eureka2.client.EurekaInterestClient setInterestClient(com.netflix.eureka2.client.EurekaInterestClient interestClient)