注释类型 Reference

    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      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
      String cache
      已过时。
      Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcache
      int callbacks
      已过时。
      The callback instance limit peer connection
      boolean check
      已过时。
      Check if service provider is available during boot up, default value is true
      String client
      已过时。
      Client transport type, default value is "netty"
      String cluster
      已过时。
      Cluster strategy, you can use ClusterRules.FAIL_FAST ……
      int connections
      已过时。
      Maximum connections service provider can accept, default value is 0 - connection is shared
      String consumer
      已过时。
      Consumer associated name
      String[] filter
      已过时。
      Filters for service invocation
      boolean generic
      已过时。
      Whether to enable generic invocation, default value is false
      String group
      已过时。
      Service group, default value is empty string
      String id
      已过时。
      The id
      boolean init
      已过时。
      Whether eager initialize the reference bean when all properties are set, default value is false
      boolean injvm
      已过时。
      When enable, prefer to call local service in the same JVM if it's present, default value is true
      Class<?> interfaceClass
      已过时。
      Interface class, default value is void.class
      String interfaceName
      已过时。
      Interface class name, default value is empty string
      String layer
      已过时。
      Service layer, default value is empty string
      boolean lazy
      已过时。
      Whether to make connection when the client is created, the default value is false
      String[] listener
      已过时。
      Listeners for service exporting and unexporting
      String loadbalance
      已过时。
      Load balance strategy, you can use LoadbalanceRules.RANDOM ……
      Method[] methods
      已过时。
      methods support
      String mock
      已过时。
      Service mock name, use interface name + Mock if not set
      String module
      已过时。
      Module associated name
      String monitor
      已过时。
      Monitor associated name
      String onconnect
      已过时。
      Callback method name when connected, default value is empty string
      String ondisconnect
      已过时。
      Callback method name when disconnected, default value is empty string
      String owner
      已过时。
      Service owner, default value is empty string
      String[] parameters
      已过时。
      Customized parameter key-value pair, for example: {key1, value1, key2, value2}
      String protocol
      已过时。
      The communication protocol of Dubbo Service
      String proxy
      已过时。
      How the proxy is generated, legal values include: jdk, javassist
      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
      String[] registry
      已过时。
      Registry associated name
      int retries
      已过时。
      Service invocation retry times
      boolean sent
      已过时。
      Whether the async request has already been sent, the default value is false
      boolean sticky
      已过时。
      Whether to stick to the same node in the cluster, the default value is false
      String stub
      已过时。
      Service stub name, use interface name + Local if not set
      boolean stubevent
      已过时。
      Export an stub service for event dispatch, default value is false.
      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 validation
      已过时。
      Whether to use JSR303 validation, legal values are: true, false
      String version
      已过时。
      Service version, default value is empty string
    • 元素详细资料

      • interfaceClass

        Class<?> interfaceClass
        已过时。
        Interface class, default value is void.class
        默认值:
        void.class
      • interfaceName

        String interfaceName
        已过时。
        Interface class name, default value is empty string
        默认值:
        ""
      • version

        String version
        已过时。
        Service version, default value is empty string
        默认值:
        ""
      • group

        String group
        已过时。
        Service group, default value is empty string
        默认值:
        ""
      • url

        String url
        已过时。
        Service target URL for direct invocation, if this is specified, then registry center takes no effect.
        默认值:
        ""
      • client

        String client
        已过时。
        Client transport type, default value is "netty"
        默认值:
        ""
      • generic

        boolean generic
        已过时。
        Whether to enable generic invocation, default value is false
        默认值:
        false
      • injvm

        boolean injvm
        已过时。
        When enable, prefer to call local service in the same JVM if it's present, default value is true
        默认值:
        true
      • check

        boolean check
        已过时。
        Check if service provider is available during boot up, default value is true
        默认值:
        true
      • init

        boolean init
        已过时。
        Whether eager initialize the reference bean when all properties are set, default value is false
        默认值:
        false
      • lazy

        boolean lazy
        已过时。
        Whether to make connection when the client is created, the default value is false
        默认值:
        false
      • stubevent

        boolean stubevent
        已过时。
        Export an stub service for event dispatch, default value is false.

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

        默认值:
        false
      • reconnect

        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

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

        默认值:
        ""
      • sticky

        boolean sticky
        已过时。
        Whether to stick to the same node in the cluster, the default value is false

        see Constants#DEFAULT_CLUSTER_STICKY

        默认值:
        false
      • proxy

        String proxy
        已过时。
        How the proxy is generated, legal values include: jdk, javassist
        默认值:
        ""
      • stub

        String stub
        已过时。
        Service stub name, use interface name + Local if not set
        默认值:
        ""
      • connections

        int connections
        已过时。
        Maximum connections service provider can accept, default value is 0 - connection is shared
        默认值:
        0
      • callbacks

        int callbacks
        已过时。
        The callback instance limit peer connection

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

        默认值:
        0
      • onconnect

        String onconnect
        已过时。
        Callback method name when connected, default value is empty string
        默认值:
        ""
      • ondisconnect

        String ondisconnect
        已过时。
        Callback method name when disconnected, default value is empty string
        默认值:
        ""
      • owner

        String owner
        已过时。
        Service owner, default value is empty string
        默认值:
        ""
      • layer

        String layer
        已过时。
        Service layer, default value is empty string
        默认值:
        ""
      • retries

        int retries
        已过时。
        Service invocation retry times

        see Constants#DEFAULT_RETRIES

        默认值:
        2
      • async

        boolean async
        已过时。
        Whether to enable async invocation, default value is false
        默认值:
        false
      • actives

        int actives
        已过时。
        Maximum active requests allowed, default value is 0
        默认值:
        0
      • sent

        boolean sent
        已过时。
        Whether the async request has already been sent, the default value is false
        默认值:
        false
      • mock

        String mock
        已过时。
        Service mock name, use interface name + Mock if not set
        默认值:
        ""
      • validation

        String validation
        已过时。
        Whether to use JSR303 validation, legal values are: true, false
        默认值:
        ""
      • timeout

        int timeout
        已过时。
        Timeout value for service invocation, default value is 0
        默认值:
        0
      • cache

        String cache
        已过时。
        Specify cache implementation for service invocation, legal values include: lru, threadlocal, jcache
        默认值:
        ""
      • filter

        String[] filter
        已过时。
        Filters for service invocation

        see Filter

        默认值:
        {}
      • listener

        String[] listener
        已过时。
        Listeners for service exporting and unexporting

        see ExporterListener

        默认值:
        {}
      • parameters

        String[] parameters
        已过时。
        Customized parameter key-value pair, for example: {key1, value1, key2, value2}
        默认值:
        {}
      • application

        String application
        已过时。
        Application associated name
        默认值:
        ""
      • module

        String module
        已过时。
        Module associated name
        默认值:
        ""
      • consumer

        String consumer
        已过时。
        Consumer associated name
        默认值:
        ""
      • monitor

        String monitor
        已过时。
        Monitor associated name
        默认值:
        ""
      • registry

        String[] registry
        已过时。
        Registry associated name
        默认值:
        {}
      • protocol

        String protocol
        已过时。
        The communication protocol of Dubbo Service
        返回:
        the default value is ""
        从以下版本开始:
        2.6.6
        默认值:
        ""
      • tag

        String tag
        已过时。
        Service tag name
        默认值:
        ""
      • methods

        Method[] methods
        已过时。
        methods support
        返回:
        默认值:
        {}
      • id

        String id
        已过时。
        The id
        返回:
        default value is empty
        从以下版本开始:
        2.7.3
        默认值:
        ""