# PooledQueueCache.TryGetNextMessage(object, IBatchContainer)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.pooledqueuecache/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.pooledqueuecache/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/PooledCache/PooledQueueCache.cs#L303-L371)

```csharp
public bool TryGetNextMessage(object cursorObj, out IBatchContainer message)
```

Acquires the next message in the cache at the provided cursor

### Parameters

- `cursorObj` (`object`)
- `message` (`IBatchContainer`)
