01: package test.thread;
02:
03: import java.util.Map;
04:
05: public class BaseSequentialSample {
06:
07: protected void addId(long id) {
08: ppp("ADDING ID " + id);
09: getMap().put(id, id);
10: }
11:
12: Map getMap() {
13: Map result = Helper.getMap(getClass().getName());
14: ppp("RETURNING MAP " + result + " THIS:" + this );
15:
16: return result;
17: }
18:
19: protected void ppp(String s) {
20: if (false) {
21: System.out.println("[" + getClass().getName() + " "
22: + Thread.currentThread().getId() + " " + "] " + s);
23: }
24: }
25: }
|