public class RegionCache extends Object
Constructor and Description |
---|
RegionCache() |
Modifier and Type | Method and Description |
---|---|
void |
clearAll() |
TiRegion |
getRegionById(long regionId)
Deprecated.
|
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 © 2024 PingCAP. All rights reserved.