|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.clients.builders.AbstractBuilder<A,S,P>
org.gcube.common.clients.builders.AbstractStatelessBuilder<A,S,P>
A - the type of service addressesS - the type of service stubsP - the type of service proxiespublic abstract class AbstractStatelessBuilder<A,S,P>
Partial implementation of proxy builders for stateless services.
| Field Summary |
|---|
| Fields inherited from class org.gcube.common.clients.builders.AbstractBuilder |
|---|
defaultTimeout |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | ||
|---|---|---|
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. |
|
|
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. |
|
| Methods inherited from class org.gcube.common.clients.builders.AbstractBuilder |
|---|
addProperty, build, contextPath, convertAddress, plugin, setAddress, setQuery, setTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gcube.common.clients.builders.StatelessBuilderAPI.Builder |
|---|
build |
| Methods inherited from interface org.gcube.common.clients.builders.StatelessBuilderAPI.SecondClause |
|---|
build |
| Methods inherited from interface org.gcube.common.clients.builders.StatelessBuilderAPI.FinalClause |
|---|
build |
| Constructor Detail |
|---|
protected 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 properties| Method Detail |
|---|
public StatelessBuilderAPI.SecondClause<P> at(String host,
int port)
StatelessBuilderAPI.Builder
at in interface StatelessBuilderAPI.Builder<P>public StatelessBuilderAPI.SecondClause<P> at(URL address)
StatelessBuilderAPI.Builder
at in interface StatelessBuilderAPI.Builder<P>address - the address of the endpoint
public StatelessBuilderAPI.SecondClause<P> at(URI address)
StatelessBuilderAPI.Builder
at in interface StatelessBuilderAPI.Builder<P>address - the address of the endpoint
public StatelessBuilderAPI.FinalClause<P> withTimeout(int duration,
TimeUnit unit)
StatelessBuilderAPI.Builder
withTimeout in interface StatelessBuilderAPI.Builder<P>withTimeout in interface StatelessBuilderAPI.SecondClause<P>duration - the duration of the timeoutunit - the time unit of the timeout
public StatelessBuilderAPI.Builder<P> with(Property<?> property)
StatelessBuilderAPI.Builder
with in interface StatelessBuilderAPI.Builder<P>
public <T> StatelessBuilderAPI.Builder<P> with(String name,
T value)
StatelessBuilderAPI.Builder
with in interface StatelessBuilderAPI.Builder<P>T - the type of the property valuename - the name of the propertyvalue - the value of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||