| 程序包 | 说明 |
|---|---|
| eventcenter.leveldb | |
| eventcenter.leveldb.cache |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<EventSourceWrapper> |
QueueMiddleComponent._peek(int bulkSize) |
protected void |
QueueMiddleComponent.batchDelete(long pageNo,
int index,
String... keys) |
void |
LevelDBPersistenceAdapter.deleteById(String[] ids) |
<T> T |
LevelDBPersistenceAdapter.get(String key,
Class<T> type) |
<T> T |
QueueMiddleComponent.get(String key,
Class<T> type) |
<T> List<T> |
LevelDBPersistenceAdapter.getMore(Class<T> type,
String... keys) |
void |
LevelDBPersistenceAdapter.houseKeeping() |
void |
LevelDBQueue.houseKeeping() |
void |
QueueMiddleComponent.houseKeeping() |
List<EventSourceWrapper> |
LevelDBPersistenceAdapter.list(int batchSize) |
List<EventSourceWrapper> |
LevelDBPersistenceAdapter.list(int batchSize,
org.iq80.leveldb.DBIterator iterator) |
void |
QueueMiddleComponent.load()
load page info, read,write and delete cursor
|
protected void |
QueueMiddleComponent.loadCursor() |
protected void |
QueueMiddleComponent.loadPage() |
EventSourceWrapper |
QueueMiddleComponent.peek()
return the head data, but not move read cursor
|
List<EventSourceWrapper> |
QueueMiddleComponent.peek(int bulkSize) |
EventSourceWrapper |
QueueMiddleComponent.pop()
return the head data, and move read cursor ahead. if read cursor equals write cursor, it would return null.
|
List<EventSourceWrapper> |
QueueMiddleComponent.pop(int bulkSize) |
List<EventSourceWrapper> |
QueueMiddleComponent.pop(int bulkSize,
org.iq80.leveldb.WriteBatch wb)
return a batch head data, and move read cursor ahead. if read cursor equals write cursor, it would return min size data.
|
EventSourceWrapper |
QueueMiddleComponent.pop(org.iq80.leveldb.WriteBatch wb) |
void |
LevelDBPersistenceAdapter.put(String key,
Serializable ser) |
protected void |
QueueMiddleComponent.put(String key,
Serializable ser) |
void |
LevelDBPersistenceAdapter.put(String key,
Serializable ser,
org.iq80.leveldb.WriteBatch update) |
protected void |
QueueMiddleComponent.put(String key,
Serializable ser,
org.iq80.leveldb.WriteBatch update) |
protected void |
QueueMiddleComponent.put(org.iq80.leveldb.WriteBatch wb,
String key,
Serializable ser) |
String |
LevelDBPersistenceAdapter.save(CommonEventSource evt)
存储的key使用的是txnId,value为txn的字节流
|
String |
QueueMiddleComponent.save(CommonEventSource evt) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
LevelDBCache.get(String key,
Class<T> type)
获取key的值
|
void |
LevelDBCache.put(Map<String,Serializable> keyValues) |
void |
LevelDBCache.put(String key,
Serializable value)
设置多个key的值
|
void |
LevelDBCache.remove(String... keys) |
| 构造器和说明 |
|---|
LevelDBCache(String namespace,
LevelDBPersistenceAdapter adapter) |
Copyright © 2018 Jue Ming. All rights reserved.