Interface StatelessBuilderAPI.Builder<P>
- Type Parameters:
P- the type of service proxies
- All Known Implementing Classes:
AbstractStatelessBuilder
- Enclosing class:
- StatelessBuilderAPI
public static interface StatelessBuilderAPI.Builder<P>
The first clause of the DSL.
- Author:
- Fabio Simeoni
-
Method Summary
Modifier and TypeMethodDescriptionConfigures the address of a given service instance.Configures the address of a given service endpoint.Configures the address of a given service endpoint.build()Configures the timeout for the proxy.Set a configuration property for the proxy.Set a configuration property for the proxy.withTimeout(int timeoutDuration, TimeUnit timeoutUnit) Configures the timeout for the proxy.
-
Method Details
-
at
Configures the address of a given service instance.- Parameters:
host- the host of the endpointport- the port of the endpoint- Returns:
- further configuration options
- Throws:
IllegalArgumentException- if the address is invalid
-
at
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
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
-
withTimeout
Configures the timeout for the proxy.- Parameters:
timeoutDuration- the duration of the timeouttimeoutUnit- the time unit of the timeout- Returns:
- further configuration options
-
with
Set a configuration property for the proxy.- Type Parameters:
T- the type of the property value- Parameters:
name- the name of the propertyvalue- the value of the property- Returns:
- further configuration options
-
with
Set a configuration property for the proxy.- Parameters:
property- the property- Returns:
- further configuration options
-
build
P build()Configures the timeout for the proxy.- Returns:
- the proxy
-