# EventHubQueueCacheFactory.CreateBufferPool(StreamStatisticOptions, ILoggerFactory, EventHubMonitorAggregationDimensions, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCacheFactory.cs#L81-L91)

```csharp
protected virtual IObjectPool<FixedSizeBuffer> CreateBufferPool(StreamStatisticOptions statisticOptions, ILoggerFactory loggerFactory, EventHubMonitorAggregationDimensions sharedDimensions, out string blockPoolId)
```

Function used to configure BufferPool for EventHubQueueCache. User can override this function to provide more customization on BufferPool creation

### Parameters

- `statisticOptions` (`StreamStatisticOptions`)
- `loggerFactory` (`ILoggerFactory`)
- `sharedDimensions` (`EventHubMonitorAggregationDimensions`)
- `blockPoolId` (`string`)
