public void invokeHookBoltFail(Tuple tuple,long failLatencyNs){
  if (taskHooks.size() != 0) {
    BoltFailInfo failInfo=new BoltFailInfo(tuple,getThisTaskId(),failLatencyNs / Constants.MILLISECONDS_TO_NANOSECONDS);
    for (    ITaskHook taskHook : taskHooks) {
      taskHook.boltFail(failInfo);
    }
  }
}

public void invokeHookBoltFail ( Tuple tuple , long failLatencyNs ) { if ( taskHooks . size ( ) != 0 ) { BoltFailInfo failInfo = new BoltFailInfo ( tuple , getThisTaskId ( ) , failLatencyNs / Constants . MILLISECONDS_TO_NANOSECONDS ) ; for ( ITaskHook taskHook : taskHooks ) { taskHook . boltFail ( failInfo ) ; } } }
task hook called in bolt every time a tuple gets failed
