public interface TransactionStore
| 限定符和类型 | 方法和说明 |
|---|---|
Future<WriteResult> |
asyncWrite(int id,
ByteBuffer... messages)
异步写入消息,线程安全,保证ACID(写入磁盘)
|
int[] |
list()
列出所有进行中的事务ID
|
int |
next()
获取下一个事务ID
|
Iterator<ByteBuffer> |
readIterator(int id)
获取读取的迭代器。
|
boolean |
remove(int id)
删除事务
|
int next()
int[] list()
boolean remove(int id)
Future<WriteResult> asyncWrite(int id, ByteBuffer... messages)
id - 事务idmessages - 消息WriteResultIterator<ByteBuffer> readIterator(int id) throws IOException
id - 事务IDIOExceptionCopyright © 2020 Joyqueue Community. All rights reserved.