com.neeve.ods
Interface IStoreReader.ReadCallback

Enclosing interface:
IStoreReader

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 entry(StoreCommitEntry commitEntry)
          Dispatches a commit entry.
 void metadata(PktBuffer buffer)
          Dispatches metadata
 

Method Detail

metadata

void metadata(PktBuffer buffer)
Dispatches metadata

Parameters:
buffer - The buffer containing the serialized metadata

entry

void entry(StoreCommitEntry commitEntry)
Dispatches a commit entry.

Parameters:
commitEntry - The commit entry

done

void done(long lastTransactionId)
Invoked to notify that the read is complete.

Parameters:
lastTransactionId - The id of the last transaction read from the transaction log. 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.



Copyright © 2016 Neeve Research, LLC. All Rights Reserved.