check whether any registered listener exists or not before publishing event
use Clock
Merge branch 'master' of https://github.com/hazelcast/hazelcast
minor fix add not check
Merge pull request #2974 from ahmetmircik/fix/3.3/hasRegisteredListener

Fixes #2913 : Prevent extra serialization if there is no registered event listener