Annotation Type Reference


Deprecated.
Recommend DubboReference as the substitute
Reference

Since:
2.7.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Deprecated.
    Maximum active requests allowed, default value is 0
    Deprecated.
    Do not set it and use the global Application Config
    boolean
    Deprecated.
    Whether to enable async invocation, default value is false
    Deprecated.
    Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcache
    int
    Deprecated.
    The callback instance limit peer connection
    boolean
    Deprecated.
    Check if service provider is available during boot up, default value is true
    Deprecated.
    Client transport type, default value is "netty"
    Deprecated.
    Cluster strategy, legal values include: failover, failfast, failsafe, failback, forking
    int
    Deprecated.
    Maximum connections service provider can accept, default value is 0 - connection is shared
    Deprecated.
    Consumer associated name
    Deprecated.
    Filters for service invocation
    boolean
    Deprecated.
    Do not need specify generic value, judge by injection type and interface class
    Deprecated.
    Service group, default value is empty string
    Deprecated.
    The id
    boolean
    Deprecated.
    Whether eager initialize the reference bean when all properties are set, default value is true ( null as true)
    boolean
    Deprecated.
    When enable, prefer to call local service in the same JVM if it's present, default value is true
    Deprecated.
    Interface class, default value is void.class
    Deprecated.
    Interface class name, default value is empty string
    Deprecated.
    Service layer, default value is empty string
    boolean
    Deprecated.
    Whether to make connection when the client is created, the default value is false
    Deprecated.
    Listeners for service exporting and unexporting
    Deprecated.
    Load balance strategy, legal values include: random, roundrobin, leastactive
    Deprecated.
    methods support
    Deprecated.
    Service mock name, use interface name + Mock if not set
    Deprecated.
    Module associated name
    Deprecated.
    Monitor associated name
    Deprecated.
    Callback method name when connected, default value is empty string
    Deprecated.
    Callback method name when disconnected, default value is empty string
    Deprecated.
    Service owner, default value is empty string
    Deprecated.
    Customized parameter key-value pair, for example: {key1, value1, key2, value2}
    Deprecated.
    The communication protocol of Dubbo Service
    Deprecated.
    How the proxy is generated, legal values include: jdk, javassist
    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
    Deprecated.
    Registry associated name
    int
    Deprecated.
    Service invocation retry times
    boolean
    Deprecated.
    Whether the async request has already been sent, the default value is false
    boolean
    Deprecated.
    Whether to stick to the same node in the cluster, the default value is false
    Deprecated.
    Service stub name, use interface name + Local if not set
    boolean
    Deprecated.
    Export an stub service for event dispatch, default value is false.
    Deprecated.
    Service tag name
    int
    Deprecated.
    Timeout value for service invocation, default value is 0
    Deprecated.
    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, false
    Deprecated.
    Service version, default value is empty string
  • Element Details

    • interfaceClass

      Class<?> interfaceClass
      Deprecated.
      Interface class, default value is void.class
      Default:
      void.class
    • interfaceName

      String interfaceName
      Deprecated.
      Interface class name, default value is empty string
      Default:
      ""
    • version

      String version
      Deprecated.
      Service version, default value is empty string
      Default:
      ""
    • group

      String group
      Deprecated.
      Service group, default value is empty string
      Default:
      ""
    • url

      String url
      Deprecated.
      Service target URL for direct invocation, if this is specified, then registry center takes no effect.
      Default:
      ""
    • client

      String client
      Deprecated.
      Client transport type, default value is "netty"
      Default:
      ""
    • generic

      @Deprecated boolean generic
      Deprecated.
      Do not need specify generic value, judge by injection type and interface class
      Whether to enable generic invocation, default value is false
      Default:
      false
    • injvm

      boolean injvm
      Deprecated.
      When enable, prefer to call local service in the same JVM if it's present, default value is true
      Default:
      true
    • check

      boolean check
      Deprecated.
      Check if service provider is available during boot up, default value is true
      Default:
      true
    • init

      boolean init
      Deprecated.
      Whether eager initialize the reference bean when all properties are set, default value is true ( null as true)
      See Also:
      Default:
      true
    • lazy

      boolean lazy
      Deprecated.
      Whether to make connection when the client is created, the default value is false
      Default:
      false
    • stubevent

      boolean stubevent
      Deprecated.
      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 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

      see org.apache.dubbo.remoting.Constants#DEFAULT_RECONNECT_PERIOD

      Default:
      ""
    • sticky

      boolean sticky
      Deprecated.
      Whether to stick to the same node in the cluster, the default value is false

      see Constants#DEFAULT_CLUSTER_STICKY

      Default:
      false
    • proxy

      String proxy
      Deprecated.
      How the proxy is generated, legal values include: jdk, javassist
      Default:
      ""
    • stub

      String stub
      Deprecated.
      Service stub name, use interface name + Local if not set
      Default:
      ""
    • cluster

      String cluster
      Deprecated.
      Cluster strategy, legal values include: failover, failfast, failsafe, failback, forking
      Default:
      ""
    • connections

      int connections
      Deprecated.
      Maximum connections service provider can accept, default value is 0 - connection is shared
      Default:
      -1
    • callbacks

      int callbacks
      Deprecated.
      The callback instance limit peer connection

      see org.apache.dubbo.rpc.Constants#DEFAULT_CALLBACK_INSTANCES

      Default:
      -1
    • onconnect

      String onconnect
      Deprecated.
      Callback method name when connected, default value is empty string
      Default:
      ""
    • ondisconnect

      String ondisconnect
      Deprecated.
      Callback method name when disconnected, default value is empty string
      Default:
      ""
    • owner

      String owner
      Deprecated.
      Service owner, default value is empty string
      Default:
      ""
    • layer

      String layer
      Deprecated.
      Service layer, default value is empty string
      Default:
      ""
    • retries

      int retries
      Deprecated.
      Service invocation retry times

      see Constants#DEFAULT_RETRIES

      Default:
      -1
    • loadbalance

      String loadbalance
      Deprecated.
      Load balance strategy, legal values include: random, roundrobin, leastactive

      see Constants#DEFAULT_LOADBALANCE

      Default:
      ""
    • async

      boolean async
      Deprecated.
      Whether to enable async invocation, default value is false
      Default:
      false
    • actives

      int actives
      Deprecated.
      Maximum active requests allowed, default value is 0
      Default:
      -1
    • sent

      boolean sent
      Deprecated.
      Whether the async request has already been sent, the default value is false
      Default:
      false
    • mock

      String mock
      Deprecated.
      Service mock name, use interface name + Mock if not set
      Default:
      ""
    • validation

      String validation
      Deprecated.
      Whether to use JSR303 validation, legal values are: true, false
      Default:
      ""
    • timeout

      int timeout
      Deprecated.
      Timeout value for service invocation, default value is 0
      Default:
      -1
    • cache

      String cache
      Deprecated.
      Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcache
      Default:
      ""
    • filter

      String[] filter
      Deprecated.
      Filters for service invocation

      see Filter

      Default:
      {}
    • listener

      String[] listener
      Deprecated.
      Listeners for service exporting and unexporting

      see ExporterListener

      Default:
      {}
    • parameters

      String[] parameters
      Deprecated.
      Customized parameter key-value pair, for example: {key1, value1, key2, value2}
      Default:
      {}
    • application

      @Deprecated String application
      Deprecated.
      Do not set it and use the global Application Config
      Application associated name
      Default:
      ""
    • module

      String module
      Deprecated.
      Module associated name
      Default:
      ""
    • consumer

      String consumer
      Deprecated.
      Consumer associated name
      Default:
      ""
    • monitor

      String monitor
      Deprecated.
      Monitor associated name
      Default:
      ""
    • registry

      String[] registry
      Deprecated.
      Registry associated name
      Default:
      {}
    • protocol

      String protocol
      Deprecated.
      The communication protocol of Dubbo Service
      Returns:
      the default value is ""
      Since:
      2.6.6
      Default:
      ""
    • tag

      String tag
      Deprecated.
      Service tag name
      Default:
      ""
    • methods

      Method[] methods
      Deprecated.
      methods support
      Returns:
      Default:
      {}
    • id

      String id
      Deprecated.
      The id
      Returns:
      default value is empty
      Since:
      2.7.3
      Default:
      ""