All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticmq.persistence.sql.package.scala Maven / Gradle / Ivy

There is a newer version: 1.6.9
Show newest version
package org.elasticmq.persistence.sql
import org.elasticmq.persistence.{CreateQueueMetadata, DeadLettersQueue}
import spray.json.{DefaultJsonProtocol, JsonFormat}

case class SerializableAttribute(
    key: String,
    primaryDataType: String,
    stringValue: String,
    customType: Option[String]
)

object SerializableAttributeProtocol extends DefaultJsonProtocol {
  implicit val colorFormat: JsonFormat[SerializableAttribute] = jsonFormat4(SerializableAttribute.apply)
}

object DeadLettersQueueProtocol extends DefaultJsonProtocol {
  implicit val DeadLettersQueueFormat: JsonFormat[DeadLettersQueue] = jsonFormat2(DeadLettersQueue.apply)
}

import org.elasticmq.persistence.sql.DeadLettersQueueProtocol._

object CreateQueueProtocol extends DefaultJsonProtocol {
  implicit val CreateQueueFormat: JsonFormat[CreateQueueMetadata] = jsonFormat12(CreateQueueMetadata.apply)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy