change processing()

This commit is contained in:
Alex Ve 2016-04-19 00:01:01 +03:00
parent fdcea19863
commit a3c9183aa8
1 changed files with 5 additions and 2 deletions

View File

@ -5,13 +5,15 @@ import java.util.Collection;
import java.util.List;
import java.util.concurrent.ForkJoinTask;
import java.util.concurrent.RecursiveAction;
import java.util.logging.Logger;
public class CustomRecursiveAction extends RecursiveAction {
private String workLoad = "";
private static final int THRESHOLD = 4;
private static Logger logger = Logger.getAnonymousLogger();
public CustomRecursiveAction(String workLoad) {
this.workLoad = workLoad;
}
@ -41,6 +43,7 @@ public class CustomRecursiveAction extends RecursiveAction {
}
private void processing(String work) {
work.toUpperCase();
String result = work.toUpperCase();
logger.info("This result - (" + result + ") - was processed by " + Thread.currentThread().getName());
}
}