public class LabelCounterFactory extends DbCounterFactory implements CounterFactory, cn.weforward.common.GcCleanable
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
_Logger
已过时。
|
protected LabelSet<CounterItem> |
m_Labelset
已过时。
|
m_CopyOnFlush, m_Expire, m_Flusher, m_MaxBatch, m_NullTimeout, m_ServerId| 构造器和说明 |
|---|
LabelCounterFactory(LabelSetFactory factory,
String serverId)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected LabelCounter |
doCreateCounter(String name)
已过时。
|
protected CounterItem |
doLoad(DbCounter counter,
String key)
已过时。
由数据库加载计数项
|
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 LabelSet<CounterItem> m_Labelset
public LabelCounterFactory(LabelSetFactory factory, String serverId)
protected LabelCounter doCreateCounter(String name)
doCreateCounter 在类中 AbstractCounterFactoryprotected CounterItem doLoad(DbCounter counter, String key)
DbCounterFactorydoLoad 在类中 DbCounterFactorycounter - 计数器key - 计数项idprotected void doUpdate(DbCounter counter, cn.weforward.common.util.LruCache.DirtyData<CounterItem> data)
DbCounterFactorydoUpdate 在类中 DbCounterFactorycounter - 计数器data - 要更新的计数项列表protected void doNew(DbCounter counter, CounterItem item)
DbCounterFactorydoNew 在类中 DbCounterFactorycounter - 计数器item - 新计数项Copyright © 2021. All rights reserved.