Interface StatefulBuilderAPI.Builder<A,P>
-
- Type Parameters:
A- the type of service addressesP- the type of service proxies
- All Known Implementing Classes:
AbstractStatefulBuilder
- Enclosing class:
- StatefulBuilderAPI
public static interface StatefulBuilderAPI.Builder<A,P>The first clause of the DSL.- Author:
- Fabio Simeoni
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 url)Configures the address of a given service instance.StatefulBuilderAPI.SecondClause<P>at(String key, URL url)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.
-
-
-
Method Detail
-
matching
StatefulBuilderAPI.SecondClause<P> matching(Query<A> query)
Configures a query for service instances.- Parameters:
query- the query- Returns:
- further configuration options
-
at
StatefulBuilderAPI.SecondClause<P> at(W3CEndpointReference address) throws IllegalArgumentException
Configures the address of a given service instance.- Parameters:
address- the address- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
at
StatefulBuilderAPI.SecondClause<P> at(String key, String host, int port) throws IllegalArgumentException
Configures the address of a given service instance.- Parameters:
the- key of the instancehost- the host of the corresponding service endpointport- the port of the corresponding service endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
at
StatefulBuilderAPI.SecondClause<P> at(String key, URL url) throws IllegalArgumentException
Configures the address of a given service instance.- Parameters:
the- key of the instanceaddress- the address of the corresponding service endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
at
StatefulBuilderAPI.SecondClause<P> at(String key, URI url) throws IllegalArgumentException
Configures the address of a given service instance.- Parameters:
the- key of the instanceaddress- the address of the corresponding service endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
-