public abstract class AbstractCache extends Object implements BaseAction, WithBroadcast
| 构造器和说明 |
|---|
AbstractCache(String name,
ItemProperties itemProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delMulWithBroadcast(List<String> keys)
批量删除
Delete multiple objects and broadcast
|
void |
delWithBroadcast(String key)
删除对象
Delete object and broadcast
|
ItemProperties |
getItemProperties() |
String |
getName() |
AbstractCache |
getNext() |
int |
getOrder() |
AbstractCache |
getPrev() |
abstract void |
initMiddleware(ItemProperties itemProperties)
初始化中间件
Initialize Middleware
|
void |
setMulWithBroadcast(Map<String,CacheObject> keyObjects)
批量存储内置缓存对象
Batch save built-in cache objects and broadcast
|
AbstractCache |
setNext(AbstractCache next)
设置并返回下一个缓存节点
Set up and return to the next cache node
|
void |
setWithBroadcast(String key,
CacheObject cacheObject)
存储内置缓存对象并广播
Save built-in cache object and broadcast
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdel, delMul, get, getCacheObject, getMul, getMulCacheObject, set, setCacheObject, setMul, setMulCacheObject, transferToCacheObject, transferToObjectsupportBroadcastpublic AbstractCache(String name, ItemProperties itemProperties)
public abstract void initMiddleware(ItemProperties itemProperties)
itemProperties - Parameter configuration of this cachepublic AbstractCache setNext(AbstractCache next)
next - next cache nodepublic String getName()
public int getOrder()
public AbstractCache getNext()
public AbstractCache getPrev()
public ItemProperties getItemProperties()
public void setWithBroadcast(String key, CacheObject cacheObject)
WithBroadcastsetWithBroadcast 在接口中 WithBroadcastkey - cache keycacheObject - 缓存对象public void setMulWithBroadcast(Map<String,CacheObject> keyObjects)
WithBroadcastsetMulWithBroadcast 在接口中 WithBroadcastkeyObjects - key-cacheObject mappingpublic void delWithBroadcast(String key)
WithBroadcastdelWithBroadcast 在接口中 WithBroadcastkey - cache keypublic void delMulWithBroadcast(List<String> keys)
WithBroadcastdelMulWithBroadcast 在接口中 WithBroadcastkeys - cache key listCopyright © 2020. All rights reserved.