SHARE
TWEET

Untitled

a guest Oct 21st, 2019 64 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top