1 /* 2 * Make.org Core API 3 * Copyright (C) 2018 Make.org 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU Affero General Public License as 7 * published by the Free Software Foundation, either version 3 of the 8 * License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Affero General Public License for more details. 14 * 15 * You should have received a copy of the GNU Affero General Public License 16 * along with this program. If not, see <https://www.gnu.org/licenses/>. 17 * 18 */ 19 20 package org.make.api.technical.crm 21 22 import akka.actor.typed.Behavior 23 import org.make.api.technical.KafkaProducerBehavior 24 25 class MailJetProducerBehavior extends KafkaProducerBehavior[SendMessages, SendMessages] { 26 override protected val topicKey: String = MailJetProducerBehavior.topicKey 27 override protected def wrapEvent(event: SendMessages): SendMessages = event 28 } 29 30 object MailJetProducerBehavior { 31 def apply(): Behavior[SendMessages] = new MailJetProducerBehavior().createBehavior(name) 32 val name: String = "emails-producer" 33 val topicKey: String = "emails" 34 }
| Line | Stmt Id | Pos | Tree | Symbol | Tests | Code |
|---|---|---|---|---|---|---|
| 26 | 7666 | 1001 - 1033 | Select | org.make.api.technical.crm.MailJetProducerBehavior.topicKey | MailJetProducerBehavior.topicKey | |
| 31 | 6381 | 1188 - 1238 | Apply | org.make.api.technical.KafkaProducerBehavior.createBehavior | new MailJetProducerBehavior().createBehavior(MailJetProducerBehavior.this.name) | |
| 31 | 6894 | 1233 - 1237 | Select | org.make.api.technical.crm.MailJetProducerBehavior.name | MailJetProducerBehavior.this.name | |
| 32 | 7855 | 1260 - 1277 | Literal | <nosymbol> | "emails-producer" | |
| 33 | 7024 | 1303 - 1311 | Literal | <nosymbol> | "emails" |