public static class RegionManager.RegionCache extends Object
| 构造器和说明 |
|---|
RegionCache(ReadOnlyPDClient pdClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
TiRegion |
getRegionByKey(com.google.protobuf.ByteString key,
BackOffer backOffer) |
Metapb.Store |
getStoreById(long id,
BackOffer backOffer) |
void |
invalidateAllRegionForStore(long storeId) |
void |
invalidateRegion(TiRegion region)
Removes region associated with regionId from regionCache.
|
void |
invalidateStore(long storeId) |
boolean |
updateRegion(TiRegion expected,
TiRegion region) |
public RegionCache(ReadOnlyPDClient pdClient)
public TiRegion getRegionByKey(com.google.protobuf.ByteString key, BackOffer backOffer)
public void invalidateRegion(TiRegion region)
public void invalidateAllRegionForStore(long storeId)
public void invalidateStore(long storeId)
public Metapb.Store getStoreById(long id, BackOffer backOffer)
Copyright © 2022 PingCAP. All rights reserved.