public class ProcessContextImpl extends Object implements HierarchicalProcessContext, ProcessContext
VAR_NAME_PROCESS_TYPE| 构造器和说明 |
|---|
ProcessContextImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearLocally()
Clear locally.
|
Instruction |
getInstruction()
Gets get instruction.
|
<T extends Instruction> |
getInstruction(Class<T> clazz)
Gets get instruction.
|
ProcessContext |
getParent() |
Object |
getVariable(String name)
Gets get variable.
|
Object |
getVariableLocally(String name)
Gets get variable locally.
|
Map<String,Object> |
getVariables()
Gets get variables.
|
Map<String,Object> |
getVariablesLocally()
Gets get variables locally.
|
boolean |
hasVariable(String name)
Has variable boolean.
|
boolean |
hasVariableLocal(String name)
Has variable local boolean.
|
void |
removeVariable(String name)
Remove variable.
|
void |
removeVariableLocally(String name)
Remove variable locally.
|
void |
setInstruction(Instruction instruction)
Sets set instruction.
|
void |
setParent(ProcessContext parent) |
void |
setVariable(String name,
Object value)
Sets set variable.
|
void |
setVariableLocally(String name,
Object value)
Sets set variable locally.
|
void |
setVariables(Map<String,Object> variables)
Sets set variables.
|
void |
setVariablesLocally(Map<String,Object> variables)
Sets set variables locally.
|
String |
toString() |
public Object getVariable(String name)
ProcessContextgetVariable 在接口中 ProcessContextname - the namepublic void setVariable(String name, Object value)
ProcessContextsetVariable 在接口中 ProcessContextname - the namevalue - the valuepublic Map<String,Object> getVariables()
ProcessContextgetVariables 在接口中 ProcessContextpublic void setVariables(Map<String,Object> variables)
ProcessContextsetVariables 在接口中 ProcessContextvariables - the variablespublic Object getVariableLocally(String name)
HierarchicalProcessContextgetVariableLocally 在接口中 HierarchicalProcessContextname - the namepublic void setVariableLocally(String name, Object value)
HierarchicalProcessContextsetVariableLocally 在接口中 HierarchicalProcessContextname - the namevalue - the valuepublic Map<String,Object> getVariablesLocally()
HierarchicalProcessContextgetVariablesLocally 在接口中 HierarchicalProcessContextpublic void setVariablesLocally(Map<String,Object> variables)
HierarchicalProcessContextsetVariablesLocally 在接口中 HierarchicalProcessContextvariables - the variablespublic boolean hasVariable(String name)
ProcessContexthasVariable 在接口中 ProcessContextname - the namepublic Instruction getInstruction()
ProcessContextgetInstruction 在接口中 ProcessContextpublic <T extends Instruction> T getInstruction(Class<T> clazz)
ProcessContextgetInstruction 在接口中 ProcessContextT - the type parameterclazz - the clazzpublic void setInstruction(Instruction instruction)
ProcessContextsetInstruction 在接口中 ProcessContextinstruction - the instructionpublic boolean hasVariableLocal(String name)
HierarchicalProcessContexthasVariableLocal 在接口中 HierarchicalProcessContextname - the namepublic void removeVariable(String name)
ProcessContextremoveVariable 在接口中 ProcessContextname - the namepublic void removeVariableLocally(String name)
HierarchicalProcessContextremoveVariableLocally 在接口中 HierarchicalProcessContextname - the namepublic void clearLocally()
HierarchicalProcessContextclearLocally 在接口中 HierarchicalProcessContextpublic ProcessContext getParent()
public void setParent(ProcessContext parent)
Copyright © 2019 Seata. All rights reserved.