private static void writeToLog(OrderSupervisorStage that, final long channelId, Pipe<NetPayloadSchema> output, final int expSeq, int logPos, int logLen, long startTime) { if (null!=that.log) { long now = System.nanoTime(); long durationNS = now-startTime; //if (businessDuration>limitSLA) { //send the routeId to those listening that we have a violation //TODO: publish if pipe is found.. //} that.writeToLog(channelId, output, logPos, logLen, expSeq, now, durationNS); } }
writeToLog(that, channelId, output, expSeq, logPos, logLen, startTime); writeToLog(that, channelId, output, expSeq, logPos, logLen, startTime);