Interface SingletonBuilderAPI.Builder<A,P>
-
- Type Parameters:
A- the type of service addressesP- the type of service proxies
- All Known Implementing Classes:
AbstractSingletonBuilder
- Enclosing class:
- SingletonBuilderAPI
public static interface SingletonBuilderAPI.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 SingletonBuilderAPI.SecondClause<P>at(String host, int port)Configures the address of a given service instance.SingletonBuilderAPI.SecondClause<P>at(URI address)Configures the address of a given service endpoint.SingletonBuilderAPI.SecondClause<P>at(URL address)Configures the address of a given service endpoint.SingletonBuilderAPI.SecondClause<P>matching(Query<A> query)Configures a query for service instances.
-
-
-
Method Detail
-
matching
SingletonBuilderAPI.SecondClause<P> matching(Query<A> query)
Configures a query for service instances.- Parameters:
query- the query- Returns:
- further configuration options
-
at
SingletonBuilderAPI.SecondClause<P> at(URL address) throws IllegalArgumentException
Configures the address of a given service endpoint.- Parameters:
address- the address of the endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
at
SingletonBuilderAPI.SecondClause<P> at(URI address) throws IllegalArgumentException
Configures the address of a given service endpoint.- Parameters:
address- the address of the endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
at
SingletonBuilderAPI.SecondClause<P> at(String host, int port) throws IllegalArgumentException
Configures the address of a given service instance.- Parameters:
address- the address of the corresponding service endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
-