@Retention(value=RUNTIME) @Target(value={TYPE,FIELD,METHOD,PARAMETER}) @Documented public @interface DubboTransported
@DubboTransported annotation indicates that the traditional
Spring Cloud Service-to-Service call is transported by Dubbo under the hood, there are
two main scenarios:
@FeignClient annotated classes:
@DubboTransported annotated classes, the invocation of all
methods of @FeignClient annotated classes.
@DubboTransported annotated methods of
@FeignClient annotated classes.
@LoadBalanced RestTemplate annotated field, method and
parametersFeignClient,
LoadBalanced| Modifier and Type | Optional Element and Description |
|---|---|
int |
actives
Maximum active requests allowed, default value is 0.
|
String |
cache
Specify cache implementation for service invocation, legal values include: lru,
threadlocal, jcache.
|
String |
cluster
The cluster of Dubbo transport whose value could be used the placeholder
"dubbo.transport.cluster".
|
int |
connections
Maximum connections service provider can accept, default value is 0 - connection is
shared.
|
String[] |
filter
Filters for service invocation.
|
String[] |
listener
Listeners for service exporting and unexporting.
|
String |
loadbalance
Load balance strategy, legal values include: random, roundrobin, leastactive.
|
String[] |
parameters
Customized parameter key-value pair, for example: {key1, value1, key2, value2}.
|
String |
protocol
The protocol of Dubbo transport whose value could be used the placeholder
"dubbo.transport.protocol".
|
String |
reconnect
Whether to reconnect if connection is lost, if not specify, reconnect is enabled by
default, and the interval for retry connecting is 2000 ms.
|
int |
retries
Service invocation retry times.
|
int |
timeout
Timeout value for service invocation, default value is 0.
|
public abstract String protocol
public abstract String cluster
public abstract String reconnect
Reference.reconnect()public abstract int connections
Reference.connections()public abstract int retries
Reference.retries()public abstract String loadbalance
Reference.loadbalance()public abstract int actives
Reference.actives()public abstract int timeout
Reference.timeout()public abstract String cache
Reference.cache()public abstract String[] filter
Filter,
Reference.filter()public abstract String[] listener
ExporterListener,
Reference.listener()public abstract String[] parameters
Reference.parameters()Copyright © 2021 Pivotal Software, Inc.. All rights reserved.