# EnableSpoolOverwrite

### void EnableSpoolOverwrite()

EZGemPlus의 SpoolingOverwrite 기능을 사용하도록 설정.

EZGemPlus의 스풀링(Spooling) 기능을 사용 중일 때, 설정된 최대 저장 개수(`MaxSpoolCount`)를 초과하면 가장 오래된 메시지를 삭제하고 새로운 메시지를 저장하도록 설정합니다 (FIFO 방식). 이 함수를 호출하지 않으면 스풀 큐가 가득 찼을 때 새로운 이벤트가 버려질 수 있습니다.

```csharp
    try
    {
        // 스풀 큐가 가득 찼을 때 최신 데이터를 유지하기 위해 덮어쓰기 모드 활성화
        m_gem.EnableSpoolOverwrite();
        
        Console.WriteLine("Spool Overwrite 기능이 활성화되었습니다.");
    }
    catch (Exception ex)
    {
        Console.WriteLine("설정 중 오류 발생: " + ex.Message);
    }
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/spool/enablespooloverwrite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
