类 BasePersistentServiceProcessor

    • 字段详细资料

      • kvStorage

        protected final com.alibaba.nacos.core.storage.kv.KvStorage kvStorage
      • serializer

        protected final com.alibaba.nacos.consistency.Serializer serializer
      • hasError

        protected volatile boolean hasError
        Whether an unrecoverable error occurred.
      • jRaftErrorMsg

        protected volatile java.lang.String jRaftErrorMsg
      • startNotify

        protected volatile boolean startNotify
        If use old raft, should not notify listener even new listener add.
      • lock

        protected final java.util.concurrent.locks.ReentrantReadWriteLock lock
        During snapshot processing, the processing of other requests needs to be paused.
      • readLock

        protected final java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLock
      • queueMaxSize

        protected final int queueMaxSize
        另请参阅:
        常量字段值
    • 构造器详细资料

      • BasePersistentServiceProcessor

        public BasePersistentServiceProcessor()
                                       throws java.lang.Exception
        抛出:
        java.lang.Exception
    • 方法详细资料

      • afterConstruct

        public void afterConstruct()
      • onRequest

        public com.alibaba.nacos.consistency.entity.Response onRequest​(com.alibaba.nacos.consistency.entity.ReadRequest request)
        指定者:
        onRequest 在类中 com.alibaba.nacos.consistency.RequestProcessor
      • onApply

        public com.alibaba.nacos.consistency.entity.Response onApply​(com.alibaba.nacos.consistency.entity.WriteRequest request)
        指定者:
        onApply 在类中 com.alibaba.nacos.consistency.RequestProcessor
      • group

        public java.lang.String group()
        指定者:
        group 在类中 com.alibaba.nacos.consistency.RequestProcessor
      • loadSnapshotOperate

        public java.util.List<com.alibaba.nacos.consistency.snapshot.SnapshotOperation> loadSnapshotOperate()
        覆盖:
        loadSnapshotOperate 在类中 com.alibaba.nacos.consistency.cp.RequestProcessor4CP
      • onError

        public void onError​(java.lang.Throwable error)
        覆盖:
        onError 在类中 com.alibaba.nacos.consistency.RequestProcessor
      • getDatumTypeFromKey

        protected java.lang.reflect.Type getDatumTypeFromKey​(java.lang.String key)
      • getClassOfRecordFromKey

        protected java.lang.Class<? extends Record> getClassOfRecordFromKey​(java.lang.String key)
      • notifierDatumIfAbsent

        protected void notifierDatumIfAbsent​(java.lang.String key,
                                             RecordListener listener)
                                      throws com.alibaba.nacos.api.exception.NacosException
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • notifierAllServiceMeta

        private void notifierAllServiceMeta​(RecordListener listener)
                                     throws com.alibaba.nacos.api.exception.NacosException
        This notify should only notify once during startup.
        抛出:
        com.alibaba.nacos.api.exception.NacosException
      • notifierDatum

        private void notifierDatum​(java.lang.String key,
                                   Datum datum,
                                   RecordListener listener)