public class MongodbLabelSet<E extends LabelElement> extends AbstractLabelSet<E> implements cn.weforward.common.GcCleanable
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.mongodb.client.MongoDatabase |
m_Db
数据库
|
protected cn.weforward.common.util.LruCache<String,MongodbLabel<E>> |
m_Items
数据项
|
protected String |
m_Serverid
服务器id
|
m_Name| 构造器和说明 |
|---|
MongodbLabelSet(com.mongodb.client.MongoDatabase db,
cn.weforward.protocol.ext.ObjectMapper<E> mapper,
String serverid,
int hashSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
Label<E> |
getLabel(String label) |
void |
onGcCleanup(int policy) |
Label<E> |
openLabel(String label) |
boolean |
remove(String label) |
void |
removeAll() |
cn.weforward.common.ResultPage<Label<E>> |
searchRange(String first,
String last) |
cn.weforward.common.ResultPage<Label<E>> |
startsWith(String prefix) |
String |
toString() |
add, get, getLabels, getName, put, putIfAbsent, removeprotected com.mongodb.client.MongoDatabase m_Db
protected String m_Serverid
protected cn.weforward.common.util.LruCache<String,MongodbLabel<E extends LabelElement>> m_Items
public cn.weforward.common.ResultPage<Label<E>> startsWith(String prefix)
startsWith 在接口中 LabelSet<E extends LabelElement>public cn.weforward.common.ResultPage<Label<E>> searchRange(String first, String last)
searchRange 在接口中 LabelSet<E extends LabelElement>public boolean remove(String label)
remove 在接口中 LabelSet<E extends LabelElement>public void removeAll()
removeAll 在接口中 LabelSet<E extends LabelElement>public Label<E> openLabel(String label)
openLabel 在接口中 LabelSet<E extends LabelElement>public void onGcCleanup(int policy)
onGcCleanup 在接口中 cn.weforward.common.GcCleanableCopyright © 2022. All rights reserved.