PreEmptive Analytics .NET API  1.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Protected Attributes | List of all members
PreEmptive.Analytics.Common.OfflineDataStore Class Reference

Class for handling the offline storage of messages. More...

Inherits PreEmptive.Analytics.Common.IOfflineDataStore, and IDisposable.

Public Member Functions

 OfflineDataStore (IOfflineStorageManager manager, ILogger logger=null)
 Constructor for the OfflineDataStore. More...
 
void SaveBatch (MessageBatch messagebatch)
 Saves off a batch of messages. More...
 
MessageBatch GetSavedBatch ()
 Gets the next cached MessageBatch that will be sent. More...
 
void ClearBatch (MessageBatch messagebatch)
 Removest the specified message batch. More...
 
void Dispose ()
 Cleans up any resources used by the OfflineDataStore. More...
 

Protected Attributes

readonly ILogger Logger
 A logger for debug log messages to be sent to More...
 

Detailed Description

Class for handling the offline storage of messages.

Constructor & Destructor Documentation

PreEmptive.Analytics.Common.OfflineDataStore.OfflineDataStore ( IOfflineStorageManager  manager,
ILogger  logger = null 
)

Constructor for the OfflineDataStore.

Parameters
managerAn instance of IOfflineStorageManager that handles platform specific filesystem access.
loggerA logger for debug log messages to be sent to

Member Function Documentation

void PreEmptive.Analytics.Common.OfflineDataStore.ClearBatch ( MessageBatch  messagebatch)

Removest the specified message batch.

Parameters
messagebatchThe MessageBatch to remove.

Implements PreEmptive.Analytics.Common.IOfflineDataStore.

void PreEmptive.Analytics.Common.OfflineDataStore.Dispose ( )

Cleans up any resources used by the OfflineDataStore.

MessageBatch PreEmptive.Analytics.Common.OfflineDataStore.GetSavedBatch ( )

Gets the next cached MessageBatch that will be sent.

Returns
The next cached MessageBatch.

Implements PreEmptive.Analytics.Common.IOfflineDataStore.

void PreEmptive.Analytics.Common.OfflineDataStore.SaveBatch ( MessageBatch  messagebatch)

Saves off a batch of messages.

Parameters
messagebatchThe batch of messages to be saved.

Implements PreEmptive.Analytics.Common.IOfflineDataStore.

Member Data Documentation

readonly ILogger PreEmptive.Analytics.Common.OfflineDataStore.Logger
protected

A logger for debug log messages to be sent to


The documentation for this class was generated from the following file: