Class MapDiscoveryContext
java.lang.Object
org.apache.curator.x.discovery.server.contexts.GenericDiscoveryContext<Map<String,String>>
org.apache.curator.x.discovery.server.contexts.MapDiscoveryContext
- All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<DiscoveryContext<Map<String,,String>>> DiscoveryContext<Map<String,String>>
@Provider
public class MapDiscoveryContext
extends GenericDiscoveryContext<Map<String,String>>
implements javax.ws.rs.ext.ContextResolver<DiscoveryContext<Map<String,String>>>
For convenience, a version of
DiscoveryContext that uses a String-to-String map as the
payload-
Constructor Summary
ConstructorsConstructorDescriptionMapDiscoveryContext(ServiceDiscovery<Map<String, String>> serviceDiscovery, ProviderStrategy<Map<String, String>> providerStrategy, int instanceRefreshMs) -
Method Summary
Methods inherited from class org.apache.curator.x.discovery.server.contexts.GenericDiscoveryContext
getContext, getInstanceRefreshMs, getProviderStrategy, getServiceDiscovery, marshallJson, unMarshallJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.ws.rs.ext.ContextResolver
getContext
-
Constructor Details
-
MapDiscoveryContext
public MapDiscoveryContext(ServiceDiscovery<Map<String, String>> serviceDiscovery, ProviderStrategy<Map<String, String>> providerStrategy, int instanceRefreshMs)
-