|
||||||||||
| 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.AbstractStatefulBuilder<A,S,P>
A - the type of service addressesS - the type of service stubsP - the type of service proxiespublic abstract class AbstractStatefulBuilder<A,S,P>
Partial implementation of proxy builders for stateful services.
| Field Summary |
|---|
| Fields inherited from class org.gcube.common.clients.builders.AbstractBuilder |
|---|
defaultTimeout |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | ||
|---|---|---|
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. |
|
|
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. |
|
| 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.StatefulBuilderAPI.SecondClause |
|---|
build |
| Methods inherited from interface org.gcube.common.clients.builders.StatefulBuilderAPI.FinalClause |
|---|
build |
| Constructor Detail |
|---|
protected 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 properties| Method Detail |
|---|
public StatefulBuilderAPI.SecondClause<P> matching(Query<A> query)
StatefulBuilderAPI.Builder
matching in interface StatefulBuilderAPI.Builder<A,P>query - the query
public StatefulBuilderAPI.SecondClause<P> at(W3CEndpointReference address)
StatefulBuilderAPI.Builder
at in interface StatefulBuilderAPI.Builder<A,P>address - the address
public StatefulBuilderAPI.SecondClause<P> at(String key,
String host,
int port)
StatefulBuilderAPI.Builder
at in interface StatefulBuilderAPI.Builder<A,P>host - the host of the corresponding service endpointport - the port of the corresponding service endpoint
public StatefulBuilderAPI.SecondClause<P> at(String key,
URL address)
StatefulBuilderAPI.Builder
at in interface StatefulBuilderAPI.Builder<A,P>
public StatefulBuilderAPI.SecondClause<P> at(String key,
URI address)
StatefulBuilderAPI.Builder
at in interface StatefulBuilderAPI.Builder<A,P>
public StatefulBuilderAPI.FinalClause<P> withTimeout(int duration,
TimeUnit unit)
StatefulBuilderAPI.SecondClause
withTimeout in interface StatefulBuilderAPI.SecondClause<P>duration - the duration of the timeoutunit - the time unit of the timeout
public StatefulBuilderAPI.SecondClause<P> with(Property<?> property)
StatefulBuilderAPI.SecondClause
with in interface StatefulBuilderAPI.SecondClause<P>
public <T> StatefulBuilderAPI.SecondClause<P> with(String name,
T value)
StatefulBuilderAPI.SecondClause
with in interface StatefulBuilderAPI.SecondClause<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 | |||||||||