|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
P - the type of service proxiespublic static interface StatelessBuilderAPI.Builder<P>
The first clause of the DSL.
| Method Summary | ||
|---|---|---|
StatelessBuilderAPI.SecondClause<P> |
at(String host,
int port)
Configures the address of a given service instance. |
|
StatelessBuilderAPI.SecondClause<P> |
at(URI address)
Configures the address of a given service endpoint. |
|
StatelessBuilderAPI.SecondClause<P> |
at(URL address)
Configures the address of a given service endpoint. |
|
P |
build()
Configures the timeout for the proxy. |
|
StatelessBuilderAPI.Builder<P> |
with(Property<?> property)
Set a configuration property for the proxy. |
|
|
with(String name,
T value)
Set a configuration property for the proxy. |
|
StatelessBuilderAPI.FinalClause<P> |
withTimeout(int timeoutDuration,
TimeUnit timeoutUnit)
Configures the timeout for the proxy. |
|
| Method Detail |
|---|
StatelessBuilderAPI.SecondClause<P> at(String host,
int port)
throws IllegalArgumentException
address - the address of the corresponding service endpoint
IllegalArgumentException - if the address is invalid
StatelessBuilderAPI.SecondClause<P> at(URL address)
throws IllegalArgumentException
address - the address of the endpoint
IllegalArgumentException - if the address is invalid
StatelessBuilderAPI.SecondClause<P> at(URI address)
throws IllegalArgumentException
address - the address of the endpoint
IllegalArgumentException - if the address is invalid
StatelessBuilderAPI.FinalClause<P> withTimeout(int timeoutDuration,
TimeUnit timeoutUnit)
timeoutDuration - the duration of the timeouttimeoutUnit - the time unit of the timeout
<T> StatelessBuilderAPI.Builder<P> with(String name,
T value)
T - the type of the property valuename - the name of the propertyvalue - the value of the property
StatelessBuilderAPI.Builder<P> with(Property<?> property)
name - the property
P build()
timeoutDuration - the duration of the timeouttimeoutUnit - the time unit of the timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||