-
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
7 changed files
with
199 additions
and
140 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
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
22 changes: 22 additions & 0 deletions
22
...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,22 @@ | ||
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, | ||
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] | ||
} |
Oops, something went wrong.