-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added DLS station * Added DLS station test * Updated README
- Loading branch information
Showing
5 changed files
with
113 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
#nullable disable | ||
|
||
namespace Memphis.Client.Station | ||
namespace Memphis.Client.Station; | ||
|
||
public sealed class StationOptions | ||
{ | ||
public sealed class StationOptions | ||
{ | ||
public string Name { get; set; } | ||
/// <summary> | ||
/// The retention type to use for the station. Valid values are: | ||
/// <list type="bullet"> | ||
/// <item><description>message_age_sec</description></item> | ||
/// <item><description>messages</description></item> | ||
/// <item><description>bytes</description></item> | ||
/// <item><description>ack_based</description></item> | ||
/// </list> | ||
/// <description> | ||
/// Use the <see cref="RetentionTypes"/> class for the valid values. | ||
/// </description> | ||
/// </summary> | ||
public string RetentionType { get; set; } = RetentionTypes.MAX_MESSAGE_AGE_SECONDS; | ||
public int RetentionValue { get; set; } = 604_800; | ||
public string StorageType { get; set; } = StorageTypes.DISK; | ||
public int Replicas { get; set; } = 1; | ||
public int IdempotenceWindowMs { get; set; } = 120_000; | ||
public string SchemaName { get; set; } = string.Empty; | ||
public bool SendPoisonMessageToDls { get; set; } = false; | ||
public bool SendSchemaFailedMessageToDls { get; set; } = true; | ||
public bool TieredStorageEnabled { get; set; } = false; | ||
public int PartitionsNumber { get; set; } = 1; | ||
} | ||
public string Name { get; set; } | ||
/// <summary> | ||
/// The retention type to use for the station. Valid values are: | ||
/// <list type="bullet"> | ||
/// <item><description>message_age_sec</description></item> | ||
/// <item><description>messages</description></item> | ||
/// <item><description>bytes</description></item> | ||
/// <item><description>ack_based</description></item> | ||
/// </list> | ||
/// <description> | ||
/// Use the <see cref="RetentionTypes"/> class for the valid values. | ||
/// </description> | ||
/// </summary> | ||
public string RetentionType { get; set; } = RetentionTypes.MAX_MESSAGE_AGE_SECONDS; | ||
public int RetentionValue { get; set; } = 604_800; | ||
public string StorageType { get; set; } = StorageTypes.DISK; | ||
public int Replicas { get; set; } = 1; | ||
public int IdempotenceWindowMs { get; set; } = 120_000; | ||
public string SchemaName { get; set; } = string.Empty; | ||
public bool SendPoisonMessageToDls { get; set; } = false; | ||
public bool SendSchemaFailedMessageToDls { get; set; } = true; | ||
public bool TieredStorageEnabled { get; set; } = false; | ||
public int PartitionsNumber { get; set; } = 1; | ||
|
||
public string DlsStation { get; set; } = string.Empty; | ||
} | ||
|
||
public class RetentionTypes | ||
{ | ||
public const string MAX_MESSAGE_AGE_SECONDS = "message_age_sec"; | ||
public const string MESSAGES = "messages"; | ||
public const string BYTES = "bytes"; | ||
/// <summary> | ||
/// Retention based on message acks. This is for cloud users only. | ||
/// </summary> | ||
public const string ACK_BASED = "ack_based"; | ||
} | ||
public class RetentionTypes | ||
{ | ||
public const string MAX_MESSAGE_AGE_SECONDS = "message_age_sec"; | ||
public const string MESSAGES = "messages"; | ||
public const string BYTES = "bytes"; | ||
/// <summary> | ||
/// Retention based on message acks. This is for cloud users only. | ||
/// </summary> | ||
public const string ACK_BASED = "ack_based"; | ||
} | ||
|
||
public class StorageTypes | ||
{ | ||
public const string DISK = "file"; | ||
public const string MEMORY = "memory"; | ||
} | ||
public class StorageTypes | ||
{ | ||
public const string DISK = "file"; | ||
public const string MEMORY = "memory"; | ||
} |