com.mtgi.analytics
Interface BehaviorEventPersister

All Known Implementing Classes:
JdbcBehaviorEventPersisterImpl, NullBehaviorEventPersisterImpl, XmlBehaviorEventPersisterImpl

public interface BehaviorEventPersister

Stores instances of BehaviorEvent to a behavior tracking database.


Method Summary
 int persist(Queue<BehaviorEvent> events)
          Drain the given event queue, persisting all instances to the database.
 

Method Detail

persist

int persist(Queue<BehaviorEvent> events)
Drain the given event queue, persisting all instances to the database. Persisters must support the persisting of child events before their parents, since this is generally the natural order in which events are completed. This method returns when the queue is empty.

Returns:
the number of persisted events