Pass callback function to watcher constructor to be invoked when processing received events.