Package org.gcube.common.clients.config
Class DiscoveryConfig<A,S>
java.lang.Object
org.gcube.common.clients.config.AbstractConfig<A,S>
org.gcube.common.clients.config.DiscoveryConfig<A,S>
- Type Parameters:
A- the type of service addressesS- the type of service stubs
- All Implemented Interfaces:
ProxyConfig<A,S>
The configuration of a proxy created in discovery mode.
- Author:
- Fabio Simeoni
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryConfig(ProxyPlugin<A, S, ?> plugin, Query<A> query, EndpointCache<A> cache) Creates an instance with a givenProxyPlugin,Queryand call timeout. -
Method Summary
Methods inherited from class org.gcube.common.clients.config.AbstractConfig
addProperty, addProperty, hasProperty, plugin, property, timeout
-
Constructor Details
-
DiscoveryConfig
Creates an instance with a givenProxyPlugin,Queryand call timeout.- Parameters:
plugin- the pluginquery- the querycache- the cache
-
-
Method Details
-
cache
Returns the address cache used by the proxy.- Returns:
- the cache
-
query
Returns the query used by the proxy.- Returns:
- the query
-