|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface IStoreReader.ReadCallback
Callback interface used by a reader to dispatch store objects or transaction entries to the user.
Method Summary | |
---|---|
void |
done(long lastTransactionId)
Invoked to notify that the read is complete. |
void |
metadata(PktBuffer buffer)
Dispatches metadata |
void |
put(IStoreCommitQueue.IPutEntry entry,
boolean endOfCommit)
Dispatches an object put. |
void |
remove(IStoreCommitQueue.IRemoveEntry entry,
boolean endOfCommit)
Dispatches an object remove. |
void |
send(IStoreCommitQueue.ISendEntry entry,
boolean endOfCommit)
Dispatches an object send |
void |
update(IStoreCommitQueue.IUpdateEntry entry,
boolean endOfCommit)
Dispatches an object update |
Method Detail |
---|
void metadata(PktBuffer buffer)
buffer
- The buffer containing the serialized metadatavoid put(IStoreCommitQueue.IPutEntry entry, boolean endOfCommit)
entry
- The put entryendOfCommit
- Indicates whether the entry is the end of a commit.void update(IStoreCommitQueue.IUpdateEntry entry, boolean endOfCommit)
entry
- The update entryendOfCommit
- Indicates whether the entry is the end of a commit.void send(IStoreCommitQueue.ISendEntry entry, boolean endOfCommit)
entry
- The send entryendOfCommit
- Indicates whether the entry is the end of a commit.void remove(IStoreCommitQueue.IRemoveEntry entry, boolean endOfCommit)
entry
- The remove entryendOfCommit
- Indicates whether the entry is the end of a commit.void done(long lastTransactionId)
lastTransactionId
- The id of the last transaction read.
For reads from a journalled log (for journaling writers), this
would be the same as the id of the last transaction in the log.
For reads from log checkpoints (fpr journalling writers), this
represents the id of the last transaction checkpointed. A value
of -1 indicates to the receiver that the transaction id of the
last entry read should be used as the last transaction id.
This method should be invoked by the reader implementation to indicate the completion of a read.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |