Added predicate argument to dispatch function

This predicate allows you to set the condition under which dispatch actually dispatches

Signed-off-by: David Noble <dnoble@splunk.com>