public class RegionCache extends Object
| 构造器和说明 |
|---|
RegionCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearAll() |
TiRegion |
getRegionById(long regionId)
已过时。
|
TiRegion |
getRegionByKey(com.google.protobuf.ByteString key,
BackOffer backOffer) |
TiStore |
getStoreById(long id) |
void |
insertRegionToCache(TiRegion region) |
void |
invalidateAll() |
void |
invalidateAllRegionForStore(TiStore store) |
void |
invalidateRegion(TiRegion region)
Removes region associated with regionId from regionCache.
|
void |
invalidateStore(long storeId) |
TiRegion |
putRegion(TiRegion region) |
boolean |
putStore(long id,
TiStore store) |
boolean |
updateRegion(TiRegion expected,
TiRegion region) |
boolean |
updateStore(TiStore oldStore,
TiStore newStore) |
public void invalidateAll()
public TiRegion getRegionByKey(com.google.protobuf.ByteString key, BackOffer backOffer)
@Deprecated public TiRegion getRegionById(long regionId)
public void invalidateRegion(TiRegion region)
public void insertRegionToCache(TiRegion region)
public void invalidateAllRegionForStore(TiStore store)
public void invalidateStore(long storeId)
public TiStore getStoreById(long id)
public boolean putStore(long id,
TiStore store)
public void clearAll()
Copyright © 2023 PingCAP. All rights reserved.