mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
Use RedisEventArgs
This commit is contained in:
43
Redis/src/RedisEventArgs.cpp
Normal file
43
Redis/src/RedisEventArgs.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// RedisEventArgs.cpp
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
// Library: Redis
|
||||
// Package: Redis
|
||||
// Module: RedisEventArgs
|
||||
//
|
||||
// Implementation of the RedisEventArgs class.
|
||||
//
|
||||
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
#include "Poco/Redis/RedisEventArgs.h"
|
||||
|
||||
namespace Poco {
|
||||
namespace Redis {
|
||||
|
||||
RedisEventArgs::RedisEventArgs(RedisType::Ptr message) :
|
||||
_message(message),
|
||||
_exception(0),
|
||||
_stop(false)
|
||||
{
|
||||
}
|
||||
|
||||
RedisEventArgs::RedisEventArgs(Exception* exception) :
|
||||
_message(),
|
||||
_exception(exception ? exception->clone() : 0),
|
||||
_stop(false)
|
||||
{
|
||||
}
|
||||
|
||||
RedisEventArgs::~RedisEventArgs()
|
||||
{
|
||||
delete _exception;
|
||||
}
|
||||
|
||||
|
||||
}} // namespace Poco::Redis
|
||||
Reference in New Issue
Block a user