A - the type of service addressesS - the type of service stubsP - the type of service proxiespublic abstract class AbstractStatelessBuilder<A,S,P> extends AbstractBuilder<A,S,P> implements StatelessBuilderAPI.Builder<P>, StatelessBuilderAPI.SecondClause<P>, StatelessBuilderAPI.FinalClause<P>
defaultTimeout| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStatelessBuilder(ProxyPlugin<A,S,P> plugin,
EndpointCache<A> cache,
Query<A> query,
Property<?>... properties)
Constructs an instance with a given
ProxyPlugin, an EndpointCache, a Query, and zero or more default Propertys. |
| Modifier and Type | Method and Description |
|---|---|
StatelessBuilderAPI.SecondClause<P> |
at(String host,
int port)
Configures the address of a given service instance.
|
StatelessBuilderAPI.SecondClause<P> |
at(URI address)
Configures the address of a given service endpoint.
|
StatelessBuilderAPI.SecondClause<P> |
at(URL address)
Configures the address of a given service endpoint.
|
StatelessBuilderAPI.Builder<P> |
with(Property<?> property)
Set a configuration property for the proxy.
|
<T> StatelessBuilderAPI.Builder<P> |
with(String name,
T value)
Set a configuration property for the proxy.
|
StatelessBuilderAPI.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, waitbuildbuildbuildprotected AbstractStatelessBuilder(ProxyPlugin<A,S,P> plugin, EndpointCache<A> cache, Query<A> query, Property<?>... properties)
ProxyPlugin, an EndpointCache, a Query, and zero or more default Propertys.plugin - the pluginthe - cachequery - the queryproperties - the propertiespublic StatelessBuilderAPI.SecondClause<P> at(String host, int port)
StatelessBuilderAPI.Builderat in interface StatelessBuilderAPI.Builder<P>public StatelessBuilderAPI.SecondClause<P> at(URL address)
StatelessBuilderAPI.Builderat in interface StatelessBuilderAPI.Builder<P>address - the address of the endpointpublic StatelessBuilderAPI.SecondClause<P> at(URI address)
StatelessBuilderAPI.Builderat in interface StatelessBuilderAPI.Builder<P>address - the address of the endpointpublic StatelessBuilderAPI.FinalClause<P> withTimeout(int duration, TimeUnit unit)
StatelessBuilderAPI.BuilderwithTimeout in interface StatelessBuilderAPI.Builder<P>withTimeout in interface StatelessBuilderAPI.SecondClause<P>duration - the duration of the timeoutunit - the time unit of the timeoutpublic StatelessBuilderAPI.Builder<P> with(Property<?> property)
StatelessBuilderAPI.Builderwith in interface StatelessBuilderAPI.Builder<P>public <T> StatelessBuilderAPI.Builder<P> with(String name, T value)
StatelessBuilderAPI.Builderwith in interface StatelessBuilderAPI.Builder<P>T - the type of the property valuename - the name of the propertyvalue - the value of the propertyCopyright © 2017. All Rights Reserved.