public interface IStoreReader
This interface defines a store reader. Store readers read store objects and/or transactions from an abstract source.
Modifier and Type | Interface and Description |
---|---|
static interface |
IStoreReader.IterativeReader
Iterative reader (returned by
#iterativeReader() ) |
static interface |
IStoreReader.ReadCallback
Callback interface used by a reader to dispatch store objects or
transaction entries to the user.
|
Modifier and Type | Method and Description |
---|---|
IStoreReader.IterativeReader |
iterativeReader(int flags)
Get an iterative reader
This method returns a reader that can be used to iteratively read the
contents of a persisted store.
|
boolean |
read(IStoreReader.ReadCallback callback)
Read the contents of the persisted store.
|
boolean |
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
|
void readMetadata(PktBuffer buffer)
buffer
- The buffer to read the (serialized form of) metadata intoIStoreReader.IterativeReader iterativeReader(int flags) throws Exception
This method returns a reader that can be used to iteratively read the contents of a persisted store.
flags
- Flags that qualify read operations.Exception
boolean read(IStoreReader.ReadCallback callback) throws Exception
This method is equivalent to calling read(callback, 0)
callback
- The callback used to return the read entries to the caller.Exception
boolean read(IStoreReader.ReadCallback callback, int flags) throws Exception
callback
- The callback used to return the read entries to the caller.flags
- Flags that qualify read operations.Exception
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.