@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
在接口中 EventStore
java.sql.SQLException
public void save(EventSerialize event)
EventStore
save
在接口中 EventStore
public void remove(EventSerialize event)
EventStore
remove
在接口中 EventStore
public void removeAll()
EventStore
removeAll
在接口中 EventStore
public void markFail(EventSerialize event)
EventStore
markFail
在接口中 EventStore
public void markAllFail()
EventStore
markAllFail
在接口中 EventStore
public java.util.List<EventSerialize> list(int pageIndex)
EventStore
list
在接口中 EventStore
pageIndex
- 页码public void reloadRetryEvent()
EventStore
reloadRetryEvent
在接口中 EventStore
public void destroy()
EventStore
destroy
在接口中 EventStore