public abstract class RequestProcessor
extends java.lang.Object
| 构造器和说明 |
|---|
RequestProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract java.lang.String |
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.
|
abstract Response |
onApply(WriteRequest log)
Process Submitted Log.
|
void |
onError(java.lang.Throwable error)
Irremediable errors that need to trigger business price cuts.
|
abstract Response |
onRequest(ReadRequest request)
get data by key.
|
public abstract Response onRequest(ReadRequest request)
request - request ReadRequestpublic abstract Response onApply(WriteRequest log)
log - WriteRequestbooleanpublic void onError(java.lang.Throwable error)
error - Throwablepublic abstract java.lang.String group()
Copyright © 2018–2021 Alibaba Group. All rights reserved.