public class ReferenceParam<T> extends Object
ReferenceClient to create a SOFA
reference.| Constructor and Description |
|---|
ReferenceParam() |
| Modifier and Type | Method and Description |
|---|---|
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 |
isJvmFirst()
Get the jvm-first parameter of the SOFA reference.
|
boolean |
isJvmService()
Deprecated.
|
boolean |
isLocalFirst()
Deprecated.
|
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 |
setJvmFirst(boolean jvmFirst)
Set whether the SOFA reference should invoke the SOFA service in the same JVM when available.
|
void |
setJvmService(boolean jvmService)
Deprecated.
|
void |
setLocalFirst(boolean localFirst)
Deprecated.
|
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 isJvmFirst()
public void setJvmFirst(boolean jvmFirst)
jvmFirst - Set whether the SOFA reference should invoke the SOFA service in the same JVM when available.@Deprecated public boolean isLocalFirst()
isJvmFirst().@Deprecated public void setLocalFirst(boolean localFirst)
setJvmFirst(boolean).localFirst - Set whether the SOFA reference should invoke the SOFA service in the same JVM when available.@Deprecated public boolean isJvmService()
@Deprecated public void setJvmService(boolean jvmService)
jvmService - The jvm-service parameter of the SOFA reference.Copyright © 2021. All rights reserved.