added setProcessed(), isProcessed(), clearProcessed() methods in order to control whether the event callback have been already processed