Skip to content
kebetsi edited this page Feb 17, 2015 · 2 revisions

Data gathered by the Fetchers and outputted by the MarketSimulator is saved permanently using Persistance[T] subclasses.

trait Persistance[T] {
  def save(t: T)
  def save(ts: List[T])
  def loadSingle(id: Int): T
  def loadBatch(startTime: Long, endTime: Long): List[T]
}

The project contains implementations of Persitors for Orders, Transactions and Tweets. Typesafe’s Slick database library is used in the Persistors implementation. Data can be saved to and loaded from the Persistors individually and in batch.

Clone this wiki locally