com.mtgi.analytics
Class NullBehaviorEventPersisterImpl
java.lang.Object
com.mtgi.analytics.NullBehaviorEventPersisterImpl
- All Implemented Interfaces:
- BehaviorEventPersister
public class NullBehaviorEventPersisterImpl
- extends Object
- implements BehaviorEventPersister
An event persister which discards all incoming events. Intended for testing
and diagnostic purposes only.
Method Summary |
int |
persist(Queue<BehaviorEvent> events)
Drain the given event queue, persisting all instances to the
database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullBehaviorEventPersisterImpl
public NullBehaviorEventPersisterImpl()
persist
public int persist(Queue<BehaviorEvent> events)
- Description copied from interface:
BehaviorEventPersister
- 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.
- Specified by:
persist
in interface BehaviorEventPersister
- Returns:
- the number of persisted events