类 RequestProcessor
java.lang.Object
com.alibaba.nacos.consistency.RequestProcessor
- 直接已知子类:
RequestProcessor4AP,RequestProcessor4CP
Can be discovered through SPI or Spring, This interface is just a function definition interface. Different
consistency protocols have their own LogDispatcher. It is not recommended to directly implement this interface.
- 作者:
- liaochuntao
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract Stringgroup()In order for the state machine that handles the transaction to be able to route the Log to the correct LogProcessor, the LogProcessor needs to have an identity information.abstract ResponseonApply(WriteRequest log)Process Submitted Log.voidIrremediable errors that need to trigger business price cuts.abstract ResponseonRequest(ReadRequest request)get data by key.
-
构造器详细资料
-
RequestProcessor
public RequestProcessor()
-
-
方法详细资料
-
onRequest
get data by key.- 参数:
request- requestReadRequest- 返回:
- target type data
-
onApply
Process Submitted Log.- 参数:
log-WriteRequest- 返回:
boolean
-
onError
Irremediable errors that need to trigger business price cuts.- 参数:
error-Throwable
-
group
In order for the state machine that handles the transaction to be able to route the Log to the correct LogProcessor, the LogProcessor needs to have an identity information.- 返回:
- Business unique identification name
-