DubboReference as the substitute@Documented @Retention(value=RUNTIME) @Target(value={FIELD,METHOD,ANNOTATION_TYPE}) @Deprecated public @interface Reference
DubboReference| Modifier and Type | Optional Element and Description |
|---|---|
int |
actives
Deprecated.
Maximum active requests allowed, default value is 0
|
String |
application
Deprecated.
Do not set it and use the global Application Config
|
boolean |
async
Deprecated.
Whether to enable async invocation, default value is false
|
String |
cache
Deprecated.
Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcache
|
int |
callbacks
Deprecated.
The callback instance limit peer connection
|
boolean |
check
Deprecated.
Check if service provider is available during boot up, default value is true
|
String |
client
Deprecated.
Client transport type, default value is "netty"
|
String |
cluster
Deprecated.
Cluster strategy, legal values include: failover, failfast, failsafe, failback, forking
|
int |
connections
Deprecated.
Maximum connections service provider can accept, default value is 0 - connection is shared
|
String |
consumer
Deprecated.
Consumer associated name
|
String[] |
filter
Deprecated.
Filters for service invocation
|
boolean |
generic
Deprecated.
Do not need specify generic value, judge by injection type and interface class
|
String |
group
Deprecated.
Service group, default value is empty string
|
String |
id
Deprecated.
The id
|
boolean |
init
Deprecated.
Whether eager initialize the reference bean when all properties are set, default value is true ( null as true)
|
boolean |
injvm
Deprecated.
When enable, prefer to call local service in the same JVM if it's present, default value is true
|
Class<?> |
interfaceClass
Deprecated.
Interface class, default value is void.class
|
String |
interfaceName
Deprecated.
Interface class name, default value is empty string
|
String |
layer
Deprecated.
Service layer, default value is empty string
|
boolean |
lazy
Deprecated.
Whether to make connection when the client is created, the default value is false
|
String[] |
listener
Deprecated.
Listeners for service exporting and unexporting
|
String |
loadbalance
Deprecated.
Load balance strategy, legal values include: random, roundrobin, leastactive
|
Method[] |
methods
Deprecated.
methods support
|
String |
mock
Deprecated.
Service mock name, use interface name + Mock if not set
|
String |
module
Deprecated.
Module associated name
|
String |
monitor
Deprecated.
Monitor associated name
|
String |
onconnect
Deprecated.
Callback method name when connected, default value is empty string
|
String |
ondisconnect
Deprecated.
Callback method name when disconnected, default value is empty string
|
String |
owner
Deprecated.
Service owner, default value is empty string
|
String[] |
parameters
Deprecated.
Customized parameter key-value pair, for example: {key1, value1, key2, value2}
|
String |
protocol
Deprecated.
The communication protocol of Dubbo Service
|
String |
proxy
Deprecated.
How the proxy is generated, legal values include: jdk, javassist
|
String |
reconnect
Deprecated.
Whether to reconnect if connection is lost, if not specify, reconnect is enabled by default, and the interval
for retry connecting is 2000 ms
|
String[] |
registry
Deprecated.
Registry associated name
|
int |
retries
Deprecated.
Service invocation retry times
|
boolean |
sent
Deprecated.
Whether the async request has already been sent, the default value is false
|
boolean |
sticky
Deprecated.
Whether to stick to the same node in the cluster, the default value is false
|
String |
stub
Deprecated.
Service stub name, use interface name + Local if not set
|
boolean |
stubevent
Deprecated.
Export an stub service for event dispatch, default value is false.
|
String |
tag
Deprecated.
Service tag name
|
int |
timeout
Deprecated.
Timeout value for service invocation, default value is 0
|
String |
url
Deprecated.
Service target URL for direct invocation, if this is specified, then registry center takes no effect.
|
String |
validation
Deprecated.
Whether to use JSR303 validation, legal values are: true, false
|
String |
version
Deprecated.
Service version, default value is empty string
|
public abstract Class<?> interfaceClass
public abstract String interfaceName
public abstract String version
public abstract String group
public abstract String url
public abstract String client
@Deprecated public abstract boolean generic
public abstract boolean injvm
public abstract boolean check
public abstract boolean init
ReferenceConfigBase.shouldInit()public abstract boolean lazy
public abstract boolean stubevent
see org.apache.dubbo.rpc.Constants#STUB_EVENT_METHODS_KEY
public abstract String reconnect
see org.apache.dubbo.remoting.Constants#DEFAULT_RECONNECT_PERIOD
public abstract boolean sticky
see Constants#DEFAULT_CLUSTER_STICKY
public abstract String proxy
public abstract String stub
public abstract String cluster
public abstract int connections
public abstract int callbacks
see org.apache.dubbo.rpc.Constants#DEFAULT_CALLBACK_INSTANCES
public abstract String onconnect
public abstract String ondisconnect
public abstract String owner
public abstract String layer
public abstract int retries
see Constants#DEFAULT_RETRIES
public abstract String loadbalance
see Constants#DEFAULT_LOADBALANCE
public abstract boolean async
public abstract int actives
public abstract boolean sent
public abstract String mock
public abstract String validation
public abstract int timeout
public abstract String cache
public abstract String[] filter
see Filter
public abstract String[] listener
see ExporterListener
public abstract String[] parameters
@Deprecated public abstract String application
public abstract String module
public abstract String consumer
public abstract String monitor
public abstract String[] registry
public abstract String protocol
public abstract String tag
public abstract Method[] methods
public abstract String id
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.