Interface StatelessBuilderAPI.SecondClause<P>
-
- Type Parameters:
P- the type of service proxies
- All Known Implementing Classes:
AbstractStatelessBuilder
- Enclosing class:
- StatelessBuilderAPI
public static interface StatelessBuilderAPI.SecondClause<P>The second clause of the DSL.- Author:
- Fabio Simeoni
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pbuild()Returns a configured proxy.StatelessBuilderAPI.FinalClause<P>withTimeout(int timeoutDuration, TimeUnit timeoutUnit)Configures the timeout for the proxy.
-
-
-
Method Detail
-
withTimeout
StatelessBuilderAPI.FinalClause<P> withTimeout(int timeoutDuration, TimeUnit timeoutUnit)
Configures the timeout for the proxy.- Parameters:
timeoutDuration- the duration of the timeouttimeoutUnit- the time unit of the timeout- Returns:
- further configuration options
-
build
P build()
Returns a configured proxy.- Returns:
- the proxy
-
-