@Inherited @Retention(value=RUNTIME) @Target(value={TYPE,FIELD}) public @interface RPCInject
| 限定符和类型 | 可选元素和说明 |
|---|---|
int |
actives
Maximum active requests allowed, default value is 0
|
String |
application
Application associated name
|
boolean |
async
Whether to enable async invocation, default value is false
|
boolean |
check
Check if service provider is available during boot up, default value is true
|
String |
consumer
Consumer associated name
|
boolean |
generic
Whether to enable generic invocation, default value is false
|
String |
group
Service group, default value is empty string
|
String |
id
The id
|
String |
loadbalance
Load balance strategy, legal values include: random, roundrobin, leastactive
see Constants#DEFAULT_LOADBALANCE
|
String |
module
Module associated name
|
String |
monitor
Monitor associated name
|
String |
protocol
The communication protocol of Dubbo Service
|
String[] |
registry
Registry associated name
|
int |
retries
Service invocation retry times
see Constants#DEFAULT_RETRIES
|
String |
tag
Service tag name
|
int |
timeout
Timeout value for service invocation, default value is 0
|
String |
url
Service target URL for direct invocation, if this is specified, then registry center takes no effect.
|
String |
version
Service version, default value is empty string
|
public abstract boolean generic
public abstract boolean check
public abstract int retries
public abstract String loadbalance
public abstract boolean async
public abstract int actives
public abstract int timeout
public abstract String application
Copyright © 2024. All rights reserved.