public final class ClientDecorationBuilder extends Object
ClientDecoration using the builder pattern.| Constructor and Description |
|---|
ClientDecorationBuilder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ClientDecorationBuilder |
add(DecoratingHttpClientFunction decorator)
Adds the specified HTTP-level
decorator. |
ClientDecorationBuilder |
add(Function<? super HttpClient,? extends HttpClient> decorator)
Adds the specified HTTP-level
decorator. |
ClientDecorationBuilder |
addRpc(DecoratingRpcClientFunction decorator)
Adds the specified RPC-level
decorator. |
ClientDecorationBuilder |
addRpc(Function<? super RpcClient,? extends RpcClient> decorator)
Adds the specified RPC-level
decorator. |
ClientDecoration |
build()
Returns a newly-created
ClientDecoration based on the decorators added to this builder. |
@Deprecated public ClientDecorationBuilder()
ClientDecoration.builder().public ClientDecorationBuilder add(Function<? super HttpClient,? extends HttpClient> decorator)
decorator.decorator - the Function that transforms an HttpClient to anotherpublic ClientDecorationBuilder add(DecoratingHttpClientFunction decorator)
decorator.decorator - the DecoratingHttpClientFunction that intercepts an invocationpublic ClientDecorationBuilder addRpc(Function<? super RpcClient,? extends RpcClient> decorator)
decorator.public ClientDecorationBuilder addRpc(DecoratingRpcClientFunction decorator)
decorator.decorator - the DecoratingHttpClientFunction that intercepts an invocationpublic ClientDecoration build()
ClientDecoration based on the decorators added to this builder.Copyright © 2020 LeanCloud. All rights reserved.