com.neeve.ods
Interface IStoreReader

All Known Subinterfaces:
IStorePersister
All Known Implementing Classes:
RogLog

public interface IStoreReader

Represents a store reader.

This interface defines a store reader. Store readers read store objects and/or transactions from an abstract source.

Threading:
A reader is not safe for concurrent access by multiple threads.

Nested Class Summary
static interface IStoreReader.ReadCallback
          Callback interface used by a reader to dispatch store objects or transaction entries to the user.
 
Method Summary
 void read(IStoreReader.ReadCallback callback)
          Read the contents of the persisted store.
 void read(IStoreReader.ReadCallback callback, int flags)
          Read the contents of the persisted store.
 void readMetadata(PktBuffer buffer)
          Read serialized form of a store's metadata into a provided buffer
 

Method Detail

readMetadata

void readMetadata(PktBuffer buffer)
Read serialized form of a store's metadata into a provided buffer

Parameters:
buffer - The buffer to read the (serialized form of) metadata into

read

void read(IStoreReader.ReadCallback callback)
          throws Exception
Read the contents of the persisted store.

This method is equivalent to calling read(callback, 0)

Parameters:
callback - The callback used to return the read entries to the caller.
Throws:
Exception
Threading:
This method can be called concurrently with record and sync operations i.e. a reader is required to support concurrent reads and writes.

read

void read(IStoreReader.ReadCallback callback,
          int flags)
          throws Exception
Read the contents of the persisted store.

Parameters:
callback - The callback used to return the read entries to the caller.
flags - Flags that qualify read operations.
Throws:
Exception
Threading:
This method can be called concurrently with record and sync operations i.e. a reader is required to support concurrent reads and writes.


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