Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release of 2.0.4 #52

Merged
merged 17 commits into from
Mar 28, 2017
Merged
Prev Previous commit
Next Next commit
fix compilation error
  • Loading branch information
CodingCat committed Mar 20, 2017
commit 7fc69c7258f164febca0c0c8201b3bd4936da90b
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ private[eventhubs] class TestEventHubsReceiver(
private[eventhubs] class TestRestEventHubClient(
latestRecords: Map[EventHubNameAndPartition, (Long, Long)]) extends EventHubClient {

override def endPointOfPartition(retryIfFail: Boolean):
Option[Predef.Map[EventHubNameAndPartition, (Long, Long)]] = {
override def endPointOfPartition(
retryIfFail: Boolean,
targetEventHubNameAndPartitions: List[EventHubNameAndPartition] = List()):
Option[Predef.Map[EventHubNameAndPartition, (Long, Long)]] = {
Some(latestRecords)
}

Expand All @@ -73,8 +75,10 @@ private[eventhubs] class TestRestEventHubClient(

private[eventhubs] class FragileEventHubClient private extends EventHubClient {

override def endPointOfPartition(retryIfFail: Boolean):
Option[Predef.Map[EventHubNameAndPartition, (Long, Long)]] = {
override def endPointOfPartition(
retryIfFail: Boolean,
targetEventHubNameAndPartitions: List[EventHubNameAndPartition] = List()):
Option[Predef.Map[EventHubNameAndPartition, (Long, Long)]] = {
import FragileEventHubClient._

callIndex += 1
Expand Down Expand Up @@ -113,8 +117,10 @@ private[eventhubs] class FluctuatedEventHubClient(

private var callIndex = -1

override def endPointOfPartition(retryIfFail: Boolean):
Option[Predef.Map[EventHubNameAndPartition, (Long, Long)]] = {
override def endPointOfPartition(
retryIfFail: Boolean,
targetEventHubNameAndPartitions: List[EventHubNameAndPartition] = List()):
Option[Predef.Map[EventHubNameAndPartition, (Long, Long)]] = {
callIndex += 1
if (callIndex < numBatchesBeforeNewData) {
Some(latestRecords.map{
Expand Down