Annotation Type Reference
@Documented
@Retention(RUNTIME)
@Target({FIELD,METHOD,ANNOTATION_TYPE})
@Deprecated
public @interface Reference
Deprecated.
Reference
- Since:
- 2.7.0
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintDeprecated.Maximum active requests allowed, default value is 0Deprecated.Do not set it and use the global Application ConfigbooleanDeprecated.Whether to enable async invocation, default value is falseDeprecated.Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcacheintDeprecated.The callback instance limit peer connectionbooleanDeprecated.Check if service provider is available during boot up, default value is trueDeprecated.Client transport type, default value is "netty"Deprecated.Cluster strategy, legal values include: failover, failfast, failsafe, failback, forkingintDeprecated.Maximum connections service provider can accept, default value is 0 - connection is sharedDeprecated.Consumer associated nameString[]Deprecated.Filters for service invocationbooleanDeprecated.Do not need specify generic value, judge by injection type and interface classDeprecated.Service group, default value is empty stringDeprecated.The idbooleanDeprecated.Whether eager initialize the reference bean when all properties are set, default value is true ( null as true)booleanDeprecated.When enable, prefer to call local service in the same JVM if it's present, default value is trueClass<?> Deprecated.Interface class, default value is void.classDeprecated.Interface class name, default value is empty stringDeprecated.Service layer, default value is empty stringbooleanDeprecated.Whether to make connection when the client is created, the default value is falseString[]Deprecated.Listeners for service exporting and unexportingDeprecated.Load balance strategy, legal values include: random, roundrobin, leastactiveMethod[]Deprecated.methods supportDeprecated.Service mock name, use interface name + Mock if not setDeprecated.Module associated nameDeprecated.Monitor associated nameDeprecated.Callback method name when connected, default value is empty stringDeprecated.Callback method name when disconnected, default value is empty stringDeprecated.Service owner, default value is empty stringString[]Deprecated.Customized parameter key-value pair, for example: {key1, value1, key2, value2}Deprecated.The communication protocol of Dubbo ServiceDeprecated.How the proxy is generated, legal values include: jdk, javassistDeprecated.Whether to reconnect if connection is lost, if not specify, reconnect is enabled by default, and the interval for retry connecting is 2000 msString[]Deprecated.Registry associated nameintDeprecated.Service invocation retry timesbooleanDeprecated.Whether the async request has already been sent, the default value is falsebooleanDeprecated.Whether to stick to the same node in the cluster, the default value is falseDeprecated.Service stub name, use interface name + Local if not setbooleanDeprecated.Export an stub service for event dispatch, default value is false.Deprecated.Service tag nameintDeprecated.Timeout value for service invocation, default value is 0Deprecated.Service target URL for direct invocation, if this is specified, then registry center takes no effect.Deprecated.Whether to use JSR303 validation, legal values are: true, falseDeprecated.Service version, default value is empty string
-
Element Details
-
interfaceClass
Class<?> interfaceClassDeprecated.Interface class, default value is void.class- Default:
void.class
-
interfaceName
String interfaceNameDeprecated.Interface class name, default value is empty string- Default:
""
-
version
String versionDeprecated.Service version, default value is empty string- Default:
""
-
group
String groupDeprecated.Service group, default value is empty string- Default:
""
-
url
String urlDeprecated.Service target URL for direct invocation, if this is specified, then registry center takes no effect.- Default:
""
-
client
String clientDeprecated.Client transport type, default value is "netty"- Default:
""
-
generic
Deprecated.Do not need specify generic value, judge by injection type and interface classWhether to enable generic invocation, default value is false- Default:
false
-
injvm
boolean injvmDeprecated.When enable, prefer to call local service in the same JVM if it's present, default value is true- Default:
true
-
check
boolean checkDeprecated.Check if service provider is available during boot up, default value is true- Default:
true
-
init
boolean initDeprecated.Whether eager initialize the reference bean when all properties are set, default value is true ( null as true)- See Also:
- Default:
true
-
lazy
boolean lazyDeprecated.Whether to make connection when the client is created, the default value is false- Default:
false
-
stubevent
boolean stubeventDeprecated.Export an stub service for event dispatch, default value is false.see org.apache.dubbo.rpc.Constants#STUB_EVENT_METHODS_KEY
- Default:
false
-
reconnect
String reconnectDeprecated.Whether to reconnect if connection is lost, if not specify, reconnect is enabled by default, and the interval for retry connecting is 2000 mssee org.apache.dubbo.remoting.Constants#DEFAULT_RECONNECT_PERIOD
- Default:
""
-
sticky
boolean stickyDeprecated.Whether to stick to the same node in the cluster, the default value is falsesee Constants#DEFAULT_CLUSTER_STICKY
- Default:
false
-
proxy
String proxyDeprecated.How the proxy is generated, legal values include: jdk, javassist- Default:
""
-
stub
String stubDeprecated.Service stub name, use interface name + Local if not set- Default:
""
-
cluster
String clusterDeprecated.Cluster strategy, legal values include: failover, failfast, failsafe, failback, forking- Default:
""
-
connections
int connectionsDeprecated.Maximum connections service provider can accept, default value is 0 - connection is shared- Default:
-1
-
callbacks
int callbacksDeprecated.The callback instance limit peer connectionsee org.apache.dubbo.rpc.Constants#DEFAULT_CALLBACK_INSTANCES
- Default:
-1
-
onconnect
String onconnectDeprecated.Callback method name when connected, default value is empty string- Default:
""
-
ondisconnect
String ondisconnectDeprecated.Callback method name when disconnected, default value is empty string- Default:
""
-
owner
String ownerDeprecated.Service owner, default value is empty string- Default:
""
-
layer
String layerDeprecated.Service layer, default value is empty string- Default:
""
-
retries
int retriesDeprecated.Service invocation retry timessee Constants#DEFAULT_RETRIES
- Default:
-1
-
loadbalance
String loadbalanceDeprecated.Load balance strategy, legal values include: random, roundrobin, leastactivesee Constants#DEFAULT_LOADBALANCE
- Default:
""
-
async
boolean asyncDeprecated.Whether to enable async invocation, default value is false- Default:
false
-
actives
int activesDeprecated.Maximum active requests allowed, default value is 0- Default:
-1
-
sent
boolean sentDeprecated.Whether the async request has already been sent, the default value is false- Default:
false
-
mock
String mockDeprecated.Service mock name, use interface name + Mock if not set- Default:
""
-
validation
String validationDeprecated.Whether to use JSR303 validation, legal values are: true, false- Default:
""
-
timeout
int timeoutDeprecated.Timeout value for service invocation, default value is 0- Default:
-1
-
cache
String cacheDeprecated.Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcache- Default:
""
-
filter
String[] filterDeprecated.Filters for service invocationsee Filter
- Default:
{}
-
listener
String[] listenerDeprecated.Listeners for service exporting and unexportingsee ExporterListener
- Default:
{}
-
parameters
String[] parametersDeprecated.Customized parameter key-value pair, for example: {key1, value1, key2, value2}- Default:
{}
-
application
Deprecated.Do not set it and use the global Application ConfigApplication associated name- Default:
""
-
module
String moduleDeprecated.Module associated name- Default:
""
-
consumer
String consumerDeprecated.Consumer associated name- Default:
""
-
monitor
String monitorDeprecated.Monitor associated name- Default:
""
-
registry
String[] registryDeprecated.Registry associated name- Default:
{}
-
protocol
String protocolDeprecated.The communication protocol of Dubbo Service- Returns:
- the default value is ""
- Since:
- 2.6.6
- Default:
""
-
tag
String tagDeprecated.Service tag name- Default:
""
-
methods
Method[] methodsDeprecated.methods support- Returns:
- Default:
{}
-
id
String idDeprecated.The id- Returns:
- default value is empty
- Since:
- 2.7.3
- Default:
""
-
DubboReferenceas the substitute