public void invokeHookSpoutFail(Object messageId,long failLatencyNs){
  if (taskHooks.size() != 0) {
    SpoutFailInfo failInfo=new SpoutFailInfo(messageId,getThisTaskId(),failLatencyNs / Constants.MILLISECONDS_TO_NANOSECONDS);
    for (    ITaskHook taskHook : taskHooks) {
      taskHook.spoutFail(failInfo);
    }
  }
}

public void invokeHookSpoutFail ( Object messageId , long failLatencyNs ) { if ( taskHooks . size ( ) != 0 ) { SpoutFailInfo failInfo = new SpoutFailInfo ( messageId , getThisTaskId ( ) , failLatencyNs / Constants . MILLISECONDS_TO_NANOSECONDS ) ; for ( ITaskHook taskHook : taskHooks ) { taskHook . spoutFail ( failInfo ) ; } } }
task hook called in spout every time a tuple gets failed
