A - the type of service addressesS - the type of service stubspublic interface ProxyConfig<A,S>
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property<?> property)
Adds a custom property to the configuration.
|
<T> void |
addProperty(String name,
T value)
Adds a custom property to the configuration.
|
boolean |
hasProperty(String property)
Returns
true if the configuration includes a given custom property. |
ProxyPlugin<A,S,?> |
plugin()
Returns the
ProxyPlugin. |
<T> T |
property(String property,
Class<T> clazz)
Returns the value of a given custom property.
|
long |
timeout()
Returns the timeout.
|
long timeout()
ProxyPlugin<A,S,?> plugin()
ProxyPlugin.<T> void addProperty(String name, T value)
T - the type of the property valuename - the name of the propertyvalue - the value of the propertyvoid addProperty(Property<?> property)
property - the propertyboolean hasProperty(String property)
true if the configuration includes a given custom property.property - the name of the property<T> T property(String property, Class<T> clazz) throws IllegalStateException, IllegalArgumentException
property - the name of the propertyclazz - the type of the property valueIllegalStateException - if the property is not included in the configurationIllegalArgumentException - if the property exists but its value has a different value
* @param Copyright © 2017. All Rights Reserved.