@@ -11,9 +11,25 @@ namespace RabbitMQ.Stream.Client.Reliable;
11
11
12
12
public record ReliableConfig
13
13
{
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>
14
18
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>
15
25
public IReconnectStrategy ResourceAvailableReconnectStrategy { get ; set ; }
16
26
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>
17
33
public string Identifier { get ; set ; }
18
34
19
35
public StreamSystem StreamSystem { get ; }
@@ -33,12 +49,15 @@ protected ReliableConfig(StreamSystem streamSystem, string stream)
33
49
}
34
50
}
35
51
52
+ /// <summary>
53
+ /// The ReliableEntityStatus is used to check the status of the ReliableEntity.
54
+ /// </summary>
36
55
public enum ReliableEntityStatus
37
56
{
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
42
61
}
43
62
44
63
/// <summary>
@@ -64,7 +83,7 @@ protected void UpdateStatus(ReliableEntityStatus status)
64
83
}
65
84
}
66
85
67
- protected bool CompareStatus ( ReliableEntityStatus toTest )
86
+ private bool CompareStatus ( ReliableEntityStatus toTest )
68
87
{
69
88
lock ( _lock )
70
89
{
0 commit comments