public class ReferenceParam<T> extends Object
ReferenceClient to create a SOFA
reference.| 构造器和说明 |
|---|
ReferenceParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
BindingParam |
getBindingParam()
The
BindingParam of the SOFA reference to be created. |
Class<T> |
getInterfaceType()
Get the interface type of the SOFA reference to be created.
|
String |
getUniqueId()
Get the unique id of the SOFA reference to be created.
|
boolean |
isJvmService()
Get the jvm-service parameter of the SOFA reference.
|
boolean |
isLocalFirst()
Get the local-first parameter of the SOFA reference.
|
void |
setBindingParam(BindingParam bindingParam)
Set the
BindingParam of the SOFA reference to be created. |
void |
setInterfaceType(Class<T> interfaceType)
The interface type of the SOFA reference to be created.
|
void |
setJvmService(boolean jvmService)
Set whether expose the SOFA reference to be created to a JVM SOFA service.
|
void |
setLocalFirst(boolean localFirst)
Set whether the SOFA reference should invoke the SOFA service in the same JVM when available.
|
void |
setUniqueId(String uniqueId)
Set the unique id of the SOFA reference to be created.
|
public String getUniqueId()
public void setUniqueId(String uniqueId)
uniqueId - The unique id of the SOFA reference.public Class<T> getInterfaceType()
public void setInterfaceType(Class<T> interfaceType)
interfaceType - The interface type of the SOFA reference.public BindingParam getBindingParam()
BindingParam of the SOFA reference to be created.BindingParam of the SOFA reference to be created.public void setBindingParam(BindingParam bindingParam)
BindingParam of the SOFA reference to be created. When creating a JVM SOFA reference, you should
not set BindingParam; When creating a RPC SOFA reference, you must set BindingParam.bindingParam - The BindingParam of the SOFA reference.public boolean isLocalFirst()
public void setLocalFirst(boolean localFirst)
localFirst - Set whether the SOFA reference should invoke the SOFA service in the same JVM when available.public boolean isJvmService()
public void setJvmService(boolean jvmService)
jvmService - The jvm-service parameter of the SOFA reference.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.