Skip to content

Commit b946c81

Browse files
committed
documentation [skip ci]
Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent e26dbae commit b946c81

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

RabbitMQ.Stream.Client/AbstractEntity.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ public abstract record EntityCommonConfig
1414
internal ConnectionsPool Pool { get; set; }
1515
public Func<MetaDataUpdate, Task> MetadataHandler { get; set; }
1616

17+
/// <summary>
18+
/// The Identifier does not have any effect on the server.
19+
/// It is used to identify the entity in the logs and on the UI (only for the consumer)
20+
/// It is possible to retrieve the entity info using the Info.Identifier method form the
21+
/// raw* instances.
22+
/// </summary>
1723
public string Identifier { get; set; }
1824
}
1925

RabbitMQ.Stream.Client/PublicAPI.Unshipped.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ RabbitMQ.Stream.Client.Reliable.ProducerConfig.Filter.set -> void
209209
RabbitMQ.Stream.Client.Reliable.ProducerConfig.Reference.set -> void
210210
RabbitMQ.Stream.Client.Reliable.ProducerFactory.CreateProducer(bool boot) -> System.Threading.Tasks.Task<RabbitMQ.Stream.Client.IProducer>
211211
RabbitMQ.Stream.Client.Reliable.ProducerFactory._producer -> RabbitMQ.Stream.Client.IProducer
212-
RabbitMQ.Stream.Client.Reliable.ReliableBase.CompareStatus(RabbitMQ.Stream.Client.Reliable.ReliableEntityStatus toTest) -> bool
213212
RabbitMQ.Stream.Client.Reliable.ReliableBase.UpdateStatus(RabbitMQ.Stream.Client.Reliable.ReliableEntityStatus status) -> void
214213
RabbitMQ.Stream.Client.Reliable.ReliableBase._status -> RabbitMQ.Stream.Client.Reliable.ReliableEntityStatus
215214
RabbitMQ.Stream.Client.Reliable.ReliableConfig.Identifier.get -> string

RabbitMQ.Stream.Client/Reliable/ReliableBase.cs

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,25 @@ namespace RabbitMQ.Stream.Client.Reliable;
1111

1212
public record ReliableConfig
1313
{
14+
/// <summary>
15+
/// The interface to reconnect the entity to the server.
16+
/// By default it uses a BackOff pattern. See <see cref="BackOffReconnectStrategy"/>
17+
/// </summary>
1418
public IReconnectStrategy ReconnectStrategy { get; set; }
19+
20+
/// <summary>
21+
/// The interface to check if the resource is available.
22+
/// A stream could be not fully ready during the restarting.
23+
/// By default it uses a BackOff pattern. See <see cref="ResourceAvailableBackOffReconnectStrategy"/>
24+
/// </summary>
1525
public IReconnectStrategy ResourceAvailableReconnectStrategy { get; set; }
1626

27+
/// <summary>
28+
/// The Identifier does not have any effect on the server.
29+
/// It is used to identify the entity in the logs and on the UI (only for the consumer)
30+
/// It is possible to retrieve the entity info using the Info.Identifier method form the
31+
/// Producer/Consumer instances.
32+
/// </summary>
1733
public string Identifier { get; set; }
1834

1935
public StreamSystem StreamSystem { get; }
@@ -33,12 +49,15 @@ protected ReliableConfig(StreamSystem streamSystem, string stream)
3349
}
3450
}
3551

52+
/// <summary>
53+
/// The ReliableEntityStatus is used to check the status of the ReliableEntity.
54+
/// </summary>
3655
public enum ReliableEntityStatus
3756
{
38-
Initialization,
39-
Open,
40-
Reconnecting,
41-
Closed,
57+
Initialization,// the entity is initializing
58+
Open, // the entity is open and ready to use
59+
Reconnecting,// the entity is reconnecting but still can be used
60+
Closed,// the entity is closed and cannot be used anymore
4261
}
4362

4463
/// <summary>
@@ -64,7 +83,7 @@ protected void UpdateStatus(ReliableEntityStatus status)
6483
}
6584
}
6685

67-
protected bool CompareStatus(ReliableEntityStatus toTest)
86+
private bool CompareStatus(ReliableEntityStatus toTest)
6887
{
6988
lock (_lock)
7089
{

0 commit comments

Comments
 (0)