A - the type of service addressesS - the type of service stubsP - the type of service proxiespublic abstract class AbstractStatefulBuilder<A,S,P> extends AbstractBuilder<A,S,P> implements StatefulBuilderAPI.Builder<A,P>, StatefulBuilderAPI.SecondClause<P>, StatefulBuilderAPI.FinalClause<P>
defaultTimeout| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStatefulBuilder(ProxyPlugin<A,S,P> plugin,
EndpointCache<A> cache,
Property<?>... properties)
Constructs an instance with a given
ProxyPlugin, and EndpointCache, and zero or more default Propertys. |
| Modifier and Type | Method and Description |
|---|---|
StatefulBuilderAPI.SecondClause<P> |
at(String key,
String host,
int port)
Configures the address of a given service instance.
|
StatefulBuilderAPI.SecondClause<P> |
at(String key,
URI address)
Configures the address of a given service instance.
|
StatefulBuilderAPI.SecondClause<P> |
at(String key,
URL address)
Configures the address of a given service instance.
|
StatefulBuilderAPI.SecondClause<P> |
at(W3CEndpointReference address)
Configures the address of a given service instance.
|
StatefulBuilderAPI.SecondClause<P> |
matching(Query<A> query)
Configures a query for service instances.
|
StatefulBuilderAPI.SecondClause<P> |
with(Property<?> property)
Set a configuration property for the proxy.
|
<T> StatefulBuilderAPI.SecondClause<P> |
with(String name,
T value)
Set a configuration property for the proxy.
|
StatefulBuilderAPI.FinalClause<P> |
withTimeout(int duration,
TimeUnit unit)
Configures the timeout for the proxy.
|
addProperty, build, contextPath, convertAddress, plugin, setAddress, setQuery, setTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildbuildprotected AbstractStatefulBuilder(ProxyPlugin<A,S,P> plugin, EndpointCache<A> cache, Property<?>... properties)
ProxyPlugin, and EndpointCache, and zero or more default Propertys.plugin - the pluginplugin - the cacheproperties - the propertiespublic StatefulBuilderAPI.SecondClause<P> matching(Query<A> query)
StatefulBuilderAPI.Buildermatching in interface StatefulBuilderAPI.Builder<A,P>query - the querypublic StatefulBuilderAPI.SecondClause<P> at(W3CEndpointReference address)
StatefulBuilderAPI.Builderat in interface StatefulBuilderAPI.Builder<A,P>address - the addresspublic StatefulBuilderAPI.SecondClause<P> at(String key, String host, int port)
StatefulBuilderAPI.Builderat in interface StatefulBuilderAPI.Builder<A,P>host - the host of the corresponding service endpointport - the port of the corresponding service endpointpublic StatefulBuilderAPI.SecondClause<P> at(String key, URL address)
StatefulBuilderAPI.Builderat in interface StatefulBuilderAPI.Builder<A,P>public StatefulBuilderAPI.SecondClause<P> at(String key, URI address)
StatefulBuilderAPI.Builderat in interface StatefulBuilderAPI.Builder<A,P>public StatefulBuilderAPI.FinalClause<P> withTimeout(int duration, TimeUnit unit)
StatefulBuilderAPI.SecondClausewithTimeout in interface StatefulBuilderAPI.SecondClause<P>duration - the duration of the timeoutunit - the time unit of the timeoutpublic StatefulBuilderAPI.SecondClause<P> with(Property<?> property)
StatefulBuilderAPI.SecondClausewith in interface StatefulBuilderAPI.SecondClause<P>public <T> StatefulBuilderAPI.SecondClause<P> with(String name, T value)
StatefulBuilderAPI.SecondClausewith in interface StatefulBuilderAPI.SecondClause<P>T - the type of the property valuename - the name of the propertyvalue - the value of the propertyCopyright © 2017. All Rights Reserved.