@Component public class EventStoreSQLLitImpl extends java.lang.Object implements EventStore
Title: 事件存储SQLLit实现
Description: 事件持久化
Copyright: Copyright (c) 2012
Company: seeyon.com
| 构造器和说明 |
|---|
EventStoreSQLLitImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
容器销毁调用
|
void |
init()
初始化sqllit数据库
|
java.util.List<EventSerialize> |
list(int pageIndex)
列出未执行的事件
|
void |
markAllFail()
标记事件执行失败,不需要恢复执行,所有
注意:定时清除数据
|
void |
markFail(EventSerialize event)
标记事件执行失败,不需要恢复执行
注意:定时清除数据
|
void |
reloadRetryEvent()
重新加载事件,再次分发
|
void |
remove(EventSerialize event)
移除持久化事件
|
void |
removeAll()
移除持久化事件,所有
|
void |
save(EventSerialize event)
持久化事件
|
@PostConstruct
public void init()
throws java.sql.SQLException
init 在接口中 EventStorejava.sql.SQLExceptionpublic void save(EventSerialize event)
EventStoresave 在接口中 EventStorepublic void remove(EventSerialize event)
EventStoreremove 在接口中 EventStorepublic void removeAll()
EventStoreremoveAll 在接口中 EventStorepublic void markFail(EventSerialize event)
EventStoremarkFail 在接口中 EventStorepublic void markAllFail()
EventStoremarkAllFail 在接口中 EventStorepublic java.util.List<EventSerialize> list(int pageIndex)
EventStorelist 在接口中 EventStorepageIndex - 页码public void reloadRetryEvent()
EventStorereloadRetryEvent 在接口中 EventStorepublic void destroy()
EventStoredestroy 在接口中 EventStore