Interface SingletonBuilderAPI.SecondClause<P>
-
- Type Parameters:
P- the type of service proxies
- All Known Implementing Classes:
AbstractSingletonBuilder
- Enclosing class:
- SingletonBuilderAPI
public static interface SingletonBuilderAPI.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.<T> SingletonBuilderAPI.SecondClause<P>with(String name, T value)Set a configuration property for the proxy.SingletonBuilderAPI.SecondClause<P>with(Property<?> property)Set a configuration property for the proxy.SingletonBuilderAPI.FinalClause<P>withTimeout(int timeoutDuration, TimeUnit timeoutUnit)Configures the timeout for the proxy.
-
-
-
Method Detail
-
withTimeout
SingletonBuilderAPI.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
-
with
<T> SingletonBuilderAPI.SecondClause<P> with(String name, T value)
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
SingletonBuilderAPI.SecondClause<P> with(Property<?> property)
Set a configuration property for the proxy.- Parameters:
name- the property- Returns:
- further configuration options
-
build
P build()
Returns a configured proxy.- Returns:
- the proxy
-
-