* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
*/
#ifndef EVENTDATABUFFERRECYCLER_H
#define EVENTDATABUFFERRECYCLER_H
#include "BufferRecycler.h"
#include "core/include/common.h"
namespace omnistream {
class EventDataBufferRecycler : public BufferRecycler {
public:
~EventDataBufferRecycler() override = default;
static std::shared_ptr<EventDataBufferRecycler> GetInstance()
{
static std::shared_ptr<EventDataBufferRecycler> instance =
std::make_shared<EventDataBufferRecycler>();
return instance;
}
void recycle(Segment *objectBuffer) override;
[[nodiscard]] std::string toString() const override
{
return "EventDataBufferRecycler";
}
};
}
#endif