Guest User

Untitled

a guest
Oct 21st, 2019
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object KafkaProducer{
  2. def send(eventContent: String): Unit = println(s"sending to Kafka: $eventContent")
  3. }
  4. object Monitor{
  5. def incrementCounter(counterName: String, tags: (String, String)): Unit = println(s"incrementing counter $counterName")
  6. }
  7. object Logger{
  8. def log(event: String): Unit = println(s"error: $event")
  9. }
  10. object S3_Client {
  11. def upload(eventContent: String): Unit = println(s"uploading event $eventContent to S3")
  12. }
RAW Paste Data