Class ChunkSettings
The chunking settings. To enable chunking just set the Size
property to the desired (maximum)
chunk size.
Inheritance
System.Object
ChunkSettings
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Sequences.Chunking
Assembly: Silverback.Integration.dll
Syntax
public sealed class ChunkSettings : IEquatable<ChunkSettings>, IValidatableEndpointSettings
Properties
| Improve this doc View sourceAlwaysAddHeaders
Gets or sets a value indicating whether the x-chunk-index
and related headers have to be added
to the produced message in any case, even if its size doesn't exceed the single chunk size. The
default is true
. This setting is ignored if chunking is disabled (Size is not
set).
Declaration
public bool AlwaysAddHeaders { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Size
Gets or sets the size in bytes of each chunk. The default is System.Int32.MaxValue, meaning that chunking is disabled.
Declaration
public int Size { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this doc View sourceEquals(ChunkSettings)
Declaration
public bool Equals(ChunkSettings other)
Parameters
Type | Name | Description |
---|---|---|
ChunkSettings | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this doc
View source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this doc
View source
Validate()
Throws an EndpointConfigurationException if the current configuration is not valid.
Declaration
public void Validate()
Implements
System.IEquatable<T>