# HashRingBasedStreamQueueMapper Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/)

## GetAllQueues {#getallqueues-3914f8c2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/methods/getallqueues-3914f8c2/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/HashRingBasedStreamQueueMapper.cs#L59)

```csharp
public IEnumerable<QueueId> GetAllQueues()
```

Gets all queues.

### Returns

All queues.

## GetQueueForStream(StreamId) {#getqueueforstream-orleans-runtime-streamid-4f8ea7f8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/methods/getqueueforstream-orleans-runtime-streamid-4f8ea7f8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/HashRingBasedStreamQueueMapper.cs#L62)

```csharp
public QueueId GetQueueForStream(StreamId streamId)
```

Gets the queue for the specified stream.

### Parameters

- `streamId` (`StreamId`): The stream identifier.

### Returns

The queue responsible for the specified stream.

## GetQueuesForRange(IRingRange) {#getqueuesforrange-orleans-runtime-iringrange-0b3ddfb8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/methods/getqueuesforrange-orleans-runtime-iringrange-0b3ddfb8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/HashRingBasedStreamQueueMapper.cs#L46-L55)

```csharp
public IEnumerable<QueueId> GetQueuesForRange(IRingRange range)
```

Gets the queues which map to the specified range.

### Parameters

- `range` (`IRingRange`): The range.

### Returns

The queues which map to the specified range.

## ToString {#tostring-be677eeb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedstreamqueuemapper/methods/tostring-be677eeb/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/HashRingBasedStreamQueueMapper.cs#L65)

```csharp
public override string ToString()
```

Returns a string that represents the current object.

### Returns

A string that represents the current object.
