com.baidu.jprotobuf.pbrpc.spring.annotation
注释类型 RpcProxy


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface RpcProxy

Annotation publish for ProtobufRpcProxyBean

从以下版本开始:
2.17
作者:
xiemalin

必需元素摘要
 java.lang.String port
          RPC server port to connect
 java.lang.Class<?> serviceInterface
          Set the interface of the service to access.
 
可选元素摘要
 java.lang.String host
          RPC server host to connect
 boolean lookupStubOnStartup
          try to connect to server on startup
 java.lang.String rpcClientOptionsBeanName
          bean name of RPC client options.
 

元素详细信息

port

public abstract java.lang.String port
RPC server port to connect


serviceInterface

public abstract java.lang.Class<?> serviceInterface
Set the interface of the service to access. The interface must be suitable for the particular service and remoting strategy. Typically required to be able to create a suitable service proxy, but can also be optional if the lookup returns a typed proxy.

host

public abstract java.lang.String host
RPC server host to connect

默认值:
"127.0.0.1"

rpcClientOptionsBeanName

public abstract java.lang.String rpcClientOptionsBeanName
bean name of RPC client options. bean type must be RpcClientOptions

默认值:
""

lookupStubOnStartup

public abstract boolean lookupStubOnStartup
try to connect to server on startup

默认值:
true


Copyright © 2015 Baidu, Inc.. All Rights Reserved.