public final class Ribbon
extends java.lang.Object
HttpResourceGroup, HttpResourceGroup.Builder,
and dynamic proxy of service interfaces. It delegates to a default RibbonResourceFactory to do the work.
For better configurability or in DI enabled application, it is recommended to use RibbonResourceFactory directly.| Modifier and Type | Method and Description |
|---|---|
static HttpResourceGroup |
createHttpResourceGroup(java.lang.String name)
Create the
HttpResourceGroup with a name. |
static HttpResourceGroup |
createHttpResourceGroup(java.lang.String name,
ClientOptions options)
Create the
HttpResourceGroup with a name. |
static HttpResourceGroup.Builder |
createHttpResourceGroupBuilder(java.lang.String name)
Create the
HttpResourceGroup.Builder with a name, where further options can be set to
build the HttpResourceGroup. |
static <T> T |
from(java.lang.Class<T> contract)
Create an instance of remote service interface.
|
public static HttpResourceGroup.Builder createHttpResourceGroupBuilder(java.lang.String name)
HttpResourceGroup.Builder with a name, where further options can be set to
build the HttpResourceGroup.name - name of the resource group, as well as the transport client that will be created once
the HttpResourceGroup is builtpublic static HttpResourceGroup createHttpResourceGroup(java.lang.String name)
HttpResourceGroup with a name.name - name of the resource group, as well as the transport client that will be created once
the HttpResourceGroup is builtpublic static HttpResourceGroup createHttpResourceGroup(java.lang.String name, ClientOptions options)
HttpResourceGroup with a name.name - name of the resource group, as well as the transport clientoptions - Options to override the client configuration createdpublic static <T> T from(java.lang.Class<T> contract)
T - Type of the instancecontract - interface class of the remote service