package ru.yandex.atom.periodic

import spray.routing.HttpServiceActor
import akka.actor.Props
import language.postfixOps
import ru.yandex.atom.utils.actor.AtomActorLogging
import spray.httpx.SprayJsonSupport
import ru.yandex.atom.application.HttpRouterComponent

/**
 * @author avhaliullin
 */
trait PeriodicRouterComponent extends HttpRouterComponent {
  component: TrieBuilderComponent =>

  class PeriodicRouter extends HttpServiceActor with SprayJsonSupport with AtomActorLogging {

    val route = {
      complete("Not implemented")
    }

    def receive = runRoute(route)
  }

  object PeriodicRouter {
    def props = Props(classOf[PeriodicRouter], component)
  }

}
