-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
201 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ain/scala/com.snowplowanalytics.snowplow.collectors.scalastream/sinks/SqsSinkConfig.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.snowplowanalytics.snowplow.collectors.scalastream.sinks | ||
|
||
import io.circe.Decoder | ||
import io.circe.generic.semiauto._ | ||
|
||
import com.snowplowanalytics.snowplow.collector.core.Config | ||
|
||
final case class SqsSinkConfig( | ||
maxBytes: Int, | ||
region: String, | ||
backoffPolicy: SqsSinkConfig.BackoffPolicyConfig, | ||
aws: SqsSinkConfig.AWSConfig, | ||
threadPoolSize: Int | ||
) extends Config.Sink | ||
|
||
object SqsSinkConfig { | ||
final case class AWSConfig(accessKey: String, secretKey: String) | ||
|
||
final case class BackoffPolicyConfig(minBackoff: Long, maxBackoff: Long, maxRetries: Int) | ||
|
||
implicit val configDecoder: Decoder[SqsSinkConfig] = deriveDecoder[SqsSinkConfig] | ||
implicit val backoffPolicyDecoder: Decoder[BackoffPolicyConfig] = deriveDecoder[BackoffPolicyConfig] | ||
implicit val awsConfigDecoder: Decoder[AWSConfig] = deriveDecoder[AWSConfig] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters