-
Notifications
You must be signed in to change notification settings - Fork 2
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
12 changed files
with
239 additions
and
58 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
7 changes: 7 additions & 0 deletions
7
core/src/main/scala/com/commercetools/queue/DeadletterQueueConfiguration.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,7 @@ | ||
package com.commercetools.queue | ||
|
||
/** | ||
* @param name the name of the deadletter queue | ||
* @param maxAttempts the maximum number of delivery attempts made before forwarding a message to the dead letter queue | ||
*/ | ||
final case class DeadletterQueueConfiguration(name: String, maxAttempts: Int) |
3 changes: 3 additions & 0 deletions
3
core/src/main/scala/com/commercetools/queue/DeadletterQueueCreationConfiguration.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,3 @@ | ||
package com.commercetools.queue | ||
|
||
final case class DeadletterQueueCreationConfiguration(maxAttempts: Int) |
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
18 changes: 18 additions & 0 deletions
18
core/src/main/scala/com/commercetools/queue/QueueCreationConfiguration.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,18 @@ | ||
package com.commercetools.queue | ||
|
||
import scala.concurrent.duration.FiniteDuration | ||
|
||
/** | ||
* Configuration provided upon queue creation. | ||
* | ||
* @param messageTTL the time a message is kept in the queue before being discarded | ||
* @param lockTTL the time a message is locked (or leased) after having been delivered | ||
* to a consumer and before being made available to other again | ||
* @param deadletter whether to create a dead letter queue associated to this queue | ||
* with the configured amount of delivery tries before moving a message | ||
* to the dead letter queue | ||
*/ | ||
final case class QueueCreationConfiguration( | ||
messageTTL: FiniteDuration, | ||
lockTTL: FiniteDuration, | ||
deadletter: Option[DeadletterQueueCreationConfiguration]) |
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
Oops, something went wrong.