Skip to content

Commit 88dc07a

Browse files
authored
rename replicas to members (#90)
* Closes #82 * Since we are still in RC, I will avoid deprecating. * Rename replicas to members --------- Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent b576d38 commit 88dc07a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

RabbitMQ.AMQP.Client/IEntitiesInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface IQueueInfo : IEntityInfo
3232
string Leader();
3333

3434
// TODO IEnumerable? ICollection?
35-
List<string> Replicas();
35+
List<string> Members();
3636

3737
ulong MessageCount();
3838

RabbitMQ.AMQP.Client/Impl/AmqpQueueSpecification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public string Leader()
9393
return _leader;
9494
}
9595

96-
public List<string> Replicas()
96+
public List<string> Members()
9797
{
9898
return _replicas;
9999
}

RabbitMQ.AMQP.Client/PublicAPI.Unshipped.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.ConsumerCount() -> uint
504504
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Durable() -> bool
505505
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Exclusive() -> bool
506506
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Leader() -> string!
507+
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Members() -> System.Collections.Generic.List<string!>!
507508
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.MessageCount() -> ulong
508509
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Name() -> string!
509-
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Replicas() -> System.Collections.Generic.List<string!>!
510510
RabbitMQ.AMQP.Client.Impl.DefaultQueueInfo.Type() -> RabbitMQ.AMQP.Client.QueueType
511511
RabbitMQ.AMQP.Client.Impl.FieldNotSetException
512512
RabbitMQ.AMQP.Client.Impl.FieldNotSetException.FieldNotSetException() -> void
@@ -610,9 +610,9 @@ RabbitMQ.AMQP.Client.IQueueInfo.ConsumerCount() -> uint
610610
RabbitMQ.AMQP.Client.IQueueInfo.Durable() -> bool
611611
RabbitMQ.AMQP.Client.IQueueInfo.Exclusive() -> bool
612612
RabbitMQ.AMQP.Client.IQueueInfo.Leader() -> string!
613+
RabbitMQ.AMQP.Client.IQueueInfo.Members() -> System.Collections.Generic.List<string!>!
613614
RabbitMQ.AMQP.Client.IQueueInfo.MessageCount() -> ulong
614615
RabbitMQ.AMQP.Client.IQueueInfo.Name() -> string!
615-
RabbitMQ.AMQP.Client.IQueueInfo.Replicas() -> System.Collections.Generic.List<string!>!
616616
RabbitMQ.AMQP.Client.IQueueInfo.Type() -> RabbitMQ.AMQP.Client.QueueType
617617
RabbitMQ.AMQP.Client.IQueueSpecification
618618
RabbitMQ.AMQP.Client.IQueueSpecification.Arguments(System.Collections.Generic.Dictionary<object!, object!>! queueArguments) -> RabbitMQ.AMQP.Client.IQueueSpecification!

Tests/Management/ManagementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ public async Task DeclareQueueWithQueueInfoValidation(
7070

7171
if (type == QueueType.CLASSIC)
7272
{
73-
Assert.Single(queueInfo.Replicas());
73+
Assert.Single(queueInfo.Members());
7474
}
7575
else
7676
{
77-
Assert.Equal(SystemUtils.ClusterSize, queueInfo.Replicas().Count);
77+
Assert.Equal(SystemUtils.ClusterSize, queueInfo.Members().Count);
7878
}
7979

8080
Assert.NotNull(queueInfo.Leader());

0 commit comments

Comments
 (0)