Interface ConfigAccess<T>

All Superinterfaces:
Access<T>
All Known Implementing Classes:
AbstractConfigAccess, GroupConfigAccess, NotifyConfigAccess, SceneConfigAccess

public interface ConfigAccess<T> extends Access<T>
获取配置通道
  • Method Details

    • getGroupConfigByGroupName

      GroupConfig getGroupConfigByGroupName(String groupName, String namespaceId)
      根据组id获取缓存上下文
      Parameters:
      groupName - 组名称
    • getSceneConfigByGroupNameAndSceneName

      RetrySceneConfig getSceneConfigByGroupNameAndSceneName(String groupName, String sceneName, String namespaceId)
      获取场景配置
      Parameters:
      groupName - 组名称
      sceneName - 场景名称
      namespaceId - 命名空间
      Returns:
      RetrySceneConfig 场景配置
    • getNotifyListConfigByGroupName

      List<NotifyConfig> getNotifyListConfigByGroupName(String shardingGroupId, String namespaceId)
      获取通知配置
      Parameters:
      shardingGroupId - 组名称
      namespaceId -
      Returns:
      NotifyConfig 通知配置
    • getSceneConfigByGroupName

      List<RetrySceneConfig> getSceneConfigByGroupName(String groupName)
      获取场景配置
      Parameters:
      groupName - 组名称
      Returns:
      RetrySceneConfig 场景配置
    • getBlacklist

      Set<String> getBlacklist(String groupName, String namespaceId)
      场景黑名单
      Returns:
      黑名单列表
    • getAllConfigGroupList

      List<GroupConfig> getAllConfigGroupList(String namespaceId)
      获取所有组配置信息
      Returns:
      组配置列表
    • getAllConfigSceneList

      List<RetrySceneConfig> getAllConfigSceneList()
      获取所有场景配置信息
      Returns:
      场景配置列表
    • getConfigVersion

      Integer getConfigVersion(String groupName, String namespaceId)
      获取配置版本号
      Parameters:
      groupName - 组名称
      namespaceId -
      Returns:
      版本号
    • getConfigInfo

      ConfigDTO getConfigInfo(String groupName, String namespaceId)
      同步客户端配置
      Parameters:
      groupName - 组名称
      namespaceId - 命名空间id
      Returns:
      ConfigDTO
    • list

      List<T> list(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> query)
    • update

      int update(T t, com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper<T> query)
    • updateById

      int updateById(T t)
    • delete

      int delete(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> query)
    • insert

      int insert(T t)
    • one

      T one(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> query)
    • listPage

      com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO<T> listPage(com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO<T> iPage, com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> query)
    • count

      long count(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> query)