C++ | Poco::Redis::RedisEventsArgs

C++ | Poco::Redis::RedisEventsArgs

Library: Redis

Package: Redis

Header: Poco/Redis/RedisEventArgs.h

Functions of this class acts as an argument to Event of AsyncReader events.

Constructor and Destructor:-

Syntax of constructor -


    RedisType::Ptr message


If the message is given, we can use the above syntax of RedisEventsArgs. And if we have an exception and not a message we can use the following syntax for constructor.


    Exception * e


Syntax of destructor -


Member Function:-

const Exception * exception() const;

It returns the exception. If there is no exception it simply returns a null pointer.

void stop();

This function is use to stop the AsyncReader

bool isStopped() const;

It returns a boolean value true if the AsyncReader is stopped. In other case it returns False.

 RedisType::Ptr message() const;

This function returns the message that is retrieved from the redis server. It may return null value in case of exception.

Reference - https://pocoproject.org/docs/Poco.Redis.RedisEventArgs.html