P - the type of service proxiespublic static interface StatelessBuilderAPI.Builder<P>
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T> StatelessBuilderAPI.Builder<P> |
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.
|
StatelessBuilderAPI.SecondClause<P> at(String host, int port) throws IllegalArgumentException
address - the address of the corresponding service endpointIllegalArgumentException - if the address is invalidStatelessBuilderAPI.SecondClause<P> at(URL address) throws IllegalArgumentException
address - the address of the endpointIllegalArgumentException - if the address is invalidStatelessBuilderAPI.SecondClause<P> at(URI address) throws IllegalArgumentException
address - the address of the endpointIllegalArgumentException - if the address is invalidStatelessBuilderAPI.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 propertyStatelessBuilderAPI.Builder<P> with(Property<?> property)
name - the propertyP build()
timeoutDuration - the duration of the timeouttimeoutUnit - the time unit of the timeoutCopyright © 2017. All Rights Reserved.