> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFEventPipelineConfig

> 定义事件管道配置。

定义事件管道配置。

## 语法

```cpp theme={null}
struct PFEventPipelineConfig {  
    uint32_t* maxEventsPerBatch;  
    uint32_t* maxWaitTimeInSeconds;  
    uint32_t* pollDelayInMs;  
    HCCompressionLevel* compressionLevel;  
    bool* retryOnDisconnect;  
    size_t* bufferSize;  
}  
```

### 成员

**`maxEventsPerBatch`**   uint32\_t\*<br />*可以为 nullptr*

在写入 PlayFab 之前将进行批处理的最大事件数量。如果传入 null，将使用默认值（遥测为 5 / PlayStream 为 5）。

**`maxWaitTimeInSeconds`**   uint32\_t\*<br />*可以为 nullptr*

管道在发送不完整批次之前将等待的最长时间。如果传入 null，将使用默认值（遥测为 3 / PlayStream 为 3）。

**`pollDelayInMs`**   uint32\_t\*<br />*可以为 nullptr*

管道在清空事件缓冲区后再次读取该缓冲区之前将等待的时间。如果传入 null，将使用默认值（遥测为 10 / PlayStream 为 10）。

**`compressionLevel`**   HCCompressionLevel\*<br />*可以为 nullptr*

事件管道将使用指定级别的 GZIP 压缩发送事件。如果传入 null，将不进行压缩。

**`retryOnDisconnect`**   bool\*<br />*可以为 nullptr*

事件管道将重试因连接丢失而发送失败的事件。如果传入 null，默认行为是重试 (true)（不适用于 PlayStream）。

**`bufferSize`**   size\_t\*<br />*可以为 nullptr*

管道缓冲区中的事件数量限制。如果传入 null，将使用默认值（两种类型均为 1024）。

## 要求

**头文件：** PFEventPipeline.h

## 另请参阅

[PFEventPipeline 成员](/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members)


## Related topics

- [PFEventPipelineUpdateConfiguration](/zh-CN/services/playfab/api-references/c/pfeventpipeline/functions/pfeventpipelineupdateconfiguration.md)
- [Services C API overview - PFEventPipeline.h](/zh-CN/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members.md)
- [事件管道教程](/zh-CN/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [PlayFab Services SDK - 事件管道](/zh-CN/services/playfab/sdks/c/event-pipeline/eventpipeline.md)
- [PlayFab Services C/C++ SDK 发行说明](/zh-CN/services/playfab/release-notes/playfab-c/index.md)
