Added support for the SubscriptionHandlerFactory object.
This commit is contained in:
1 parent
0ef782a11c
commit
b40cb9f5a4
114 files changed
+497
-480
No files matched your search
@@ -11,22 +11,22 @@
|
||||
|
||||
namespace core {
|
||||
|
||||
class SubscriptionHandlerFactory;
|
||||
|
||||
class SubscriptionManager : public Command {
|
||||
|
||||
public:
|
||||
SubscriptionManager();
|
||||
|
||||
int add(Subscription &subscription);
|
||||
int addHandler(std::string name, SubscriptionHandler *handler);
|
||||
|
||||
int removeSessionSubscriptions(TCPSession &session);
|
||||
|
||||
int processCommand(coreutils::ZString &request, TCPSession &session) override;
|
||||
|
||||
SubscriptionHandlerFactory *factory;
|
||||
|
||||
private:
|
||||
Subscription *subscription;
|
||||
std::map<std::string, Subscription *> subscriptions;
|
||||
std::map<std::string, SubscriptionHandler *> handlers;
|
||||
Subscription *newSubscription;
|
||||
std::mutex lock;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user