public void invokeHookEmit(List<Object> values,String stream,Collection<Integer> outTasks){
  if (taskHooks.size() != 0) {
    EmitInfo emitInfo=new EmitInfo(values,stream,getThisTaskId(),outTasks);
    for (    ITaskHook taskHook : taskHooks) {
      taskHook.emit(emitInfo);
    }
  }
}

public void invokeHookEmit ( List < Object > values , String stream , Collection < Integer > outTasks ) { if ( taskHooks . size ( ) != 0 ) { EmitInfo emitInfo = new EmitInfo ( values , stream , getThisTaskId ( ) , outTasks ) ; for ( ITaskHook taskHook : taskHooks ) { taskHook . emit ( emitInfo ) ; } } }
task hook called every time a tuple is emitted in spout / bolt
