Feature #1149

Allow checking if handlers are registered in Listener

Added by M. Meier about 9 years ago. Updated about 4 years ago.

Status:FeedbackStart date:08/24/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:C++
Target version:rsb-0.18

Description

For our migration to rsb we need some sort of functionality provided by the rsb::Listener which allows us to check if there are any handlers registered. In earlier version we used the std::set<HandlerPtr> in rsb::Listener::Impl which has been removed recently (rsb-cpp|de636d55). So we would like to have at least some kind of bool hasHandlers() available.

History

#1 Updated by J. Moringen about 9 years ago

  • Subject changed from rsb::Listener: Provide function to check if handlers are registered to Allow checking if handlers are registered in Listener
  • Description updated (diff)
  • Target version set to rsb-0.9

#2 Updated by J. Moringen about 9 years ago

  • Description updated (diff)

#3 Updated by R. Haschke about 9 years ago

The required code snipped is commited to agni branch.
Please consider merging to master branch.

#6 Updated by J. Moringen over 8 years ago

We discussed the proposed change and would like to make the following suggestions:

  • Please change the signature to const std::set<HandlerPtr> getHandlers() const
  • getHandlers should be thread-safe
  • Keeping a local copy of the set of handlers in the Listener should be avoided. The set of handlers is stored in the event-processing layer.
  • Please open a separate issue for getFilters

#7 Updated by J. Wienke over 8 years ago

Martin, Robert, are you planing on implementing the proposed changes or should we do this?

#8 Updated by J. Moringen over 8 years ago

  • Target version changed from rsb-0.9 to rsb-0.10

#9 Updated by J. Moringen almost 8 years ago

  • Target version changed from rsb-0.10 to rsb-0.11

#10 Updated by J. Moringen over 7 years ago

  • Status changed from New to Feedback

Is this still an issue?

#11 Updated by J. Moringen almost 7 years ago

  • Target version changed from rsb-0.11 to rsb-0.12

#12 Updated by J. Moringen over 6 years ago

  • Target version changed from rsb-0.12 to rsb-0.13

#13 Updated by J. Moringen over 5 years ago

  • Target version changed from rsb-0.13 to rsb-0.14

#14 Updated by J. Moringen over 5 years ago

  • Target version changed from rsb-0.14 to rsb-0.15

#15 Updated by J. Moringen almost 5 years ago

  • Target version changed from rsb-0.15 to rsb-0.16

#16 Updated by J. Moringen over 4 years ago

  • Target version changed from rsb-0.16 to rsb-0.17

#17 Updated by J. Moringen about 4 years ago

  • Target version changed from rsb-0.17 to rsb-0.18

Also available in: Atom PDF