类 RequestProcessor

  • 直接已知子类:
    RequestProcessor4AP, RequestProcessor4CP

    public abstract class RequestProcessor
    extends java.lang.Object
    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 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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • RequestProcessor

        public RequestProcessor()
    • 方法详细资料

      • onRequest

        public abstract Response onRequest​(ReadRequest request)
        get data by key.
        参数:
        request - request ReadRequest
        返回:
        target type data
      • onError

        public void onError​(java.lang.Throwable error)
        Irremediable errors that need to trigger business price cuts.
        参数:
        error - Throwable
      • group

        public 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.
        返回:
        Business unique identification name