public class MongodbCounterFactory extends DbCounterFactory
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
_Logger |
protected com.mongodb.client.MongoDatabase |
m_Db |
protected String |
m_FieldName |
protected com.mongodb.client.model.UpdateOptions |
m_UpdateOptions |
m_CopyOnFlush, m_Expire, m_Flusher, m_MaxBatch, m_NullTimeout, m_ServerId| 构造器和说明 |
|---|
MongodbCounterFactory(String serverId,
com.mongodb.client.MongoDatabase db,
Flusher flusher) |
MongodbCounterFactory(String serverId,
String connection,
String dbname,
Flusher flusher) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Counter |
doCreateCounter(String name) |
protected CounterItem |
doLoad(DbCounter counter,
String id) |
protected void |
doNew(DbCounter counter,
CounterItem item) |
protected void |
doUpdate(DbCounter counter,
cn.weforward.common.util.LruCache.DirtyData<CounterItem> data) |
getExpire, getFlusher, getMaxBatch, getServerId, isCopyOnFlush, onGcCleanup, setCopyOnFlush, setExpire, setFlusher, setMaxBatch, setNullTimeoutcreateCounter, getCounter, iterator, openCounterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCounter, getCounter, openCounterforEach, iterator, spliteratorprotected static final org.slf4j.Logger _Logger
protected com.mongodb.client.MongoDatabase m_Db
protected String m_FieldName
protected com.mongodb.client.model.UpdateOptions m_UpdateOptions
public MongodbCounterFactory(String serverId, String connection, String dbname, Flusher flusher)
protected CounterItem doLoad(DbCounter counter, String id)
doLoad 在类中 DbCounterFactoryprotected void doUpdate(DbCounter counter, cn.weforward.common.util.LruCache.DirtyData<CounterItem> data)
doUpdate 在类中 DbCounterFactoryprotected void doNew(DbCounter counter, CounterItem item)
doNew 在类中 DbCounterFactoryprotected Counter doCreateCounter(String name)
doCreateCounter 在类中 AbstractCounterFactoryCopyright © 2022. All rights reserved.