Skip to content

Comments

updated code to add examples#31

Open
ainulhabib wants to merge 6 commits intomasterfrom
RabbitConsumerExamples
Open

updated code to add examples#31
ainulhabib wants to merge 6 commits intomasterfrom
RabbitConsumerExamples

Conversation

@ainulhabib
Copy link
Collaborator

Rabbit Consumer code is added for the following

  • Connection service is updated to accept Config object, which can be generated from external file

@coveralls
Copy link

coveralls commented Jan 31, 2018

Coverage Status

Coverage decreased (-30.8%) to 30.841% when pulling f72c747 on RabbitConsumerExamples into 45b5e99 on master.

@PaddyPowerBetfair PaddyPowerBetfair deleted a comment from tshy0931 Feb 6, 2018
queue = "dwimyQueue"
routingKey = ""
fileName = "~/output1.json"
queue = "dmTestQueue"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better replace "dm" with something else




//trait QueueSubscriber {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we delete these commented code if no longer in use?

import scalaz.stream._

case class Cxn(filename: String, nextMessage: () => RabbitResponse, disconnect: () => Try[Unit])
case class Sxn(subscription:((Try[RabbitResponse] => Unit) => String), disconnect: () => Try[Unit])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what exactly Cxn and Sxn mean (Connection and Session?)
can we use more explicit names to avoid confusion?

import scalaz.stream._

case class Cxn(filename: String, nextMessage: () => RabbitResponse, disconnect: () => Try[Unit])
case class Sxn(subscription:((Try[RabbitResponse] => Unit) => String), disconnect: () => Try[Unit])
Copy link
Contributor

@rodoherty1 rodoherty1 Feb 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have a chat about how we could refactor Sxn. It looks like it's a case class that holds functions that manage a user's attempt to subscribe to a Rabbit queue. Perhaps it doesn't belong in a case class and we could capture some logic in a plain old object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants