/** * Starts a counter for a sub-task * <p> * <b>Thread Safety Note: </b> This method is not threadsafe! Do not use subtasks in a * multithreaded environment. * </p> * * @param theTaskName Note that if theTaskName is blank or empty, no task is started */ public void startTask(String theTaskName) { endCurrentTask(); if (isNotBlank(theTaskName)) { myCurrentTask = new TaskTiming() .setTaskName(theTaskName) .setStart(now()); myTasks.add(myCurrentTask); } }
return retVal; }); transactionStopWatch.endCurrentTask(); transactionStopWatch.endCurrentTask();
theTransactionStopWatch.endCurrentTask(); theTransactionStopWatch.endCurrentTask(); theTransactionStopWatch.startTask("Flush writes to database"); theTransactionStopWatch.endCurrentTask(); if (conditionalRequestUrls.size() > 0) { theTransactionStopWatch.startTask("Check for conflicts in conditional resources"); theTransactionStopWatch.endCurrentTask();
/** * Starts a counter for a sub-task * <p> * <b>Thread Safety Note: </b> This method is not threadsafe! Do not use subtasks in a * multithreaded environment. * </p> * * @param theTaskName Note that if theTaskName is blank or empty, no task is started */ public void startTask(String theTaskName) { endCurrentTask(); if (isNotBlank(theTaskName)) { myCurrentTask = new TaskTiming() .setTaskName(theTaskName) .setStart(now()); myTasks.add(myCurrentTask); } }
return retVal; }); transactionStopWatch.endCurrentTask(); transactionStopWatch.endCurrentTask();
theTransactionStopWatch.endCurrentTask(); theTransactionStopWatch.endCurrentTask(); theTransactionStopWatch.startTask("Flush writes to database"); theTransactionStopWatch.endCurrentTask(); if (conditionalRequestUrls.size() > 0) { theTransactionStopWatch.startTask("Check for conflicts in conditional resources"); theTransactionStopWatch.endCurrentTask();