home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / Notes.jar / lotus / notes / AgentThreadGroup.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  1.3 KB  |  53 lines

  1. package lotus.notes;
  2.  
  3. public final class AgentThreadGroup extends ThreadGroup {
  4.    private String agentName;
  5.    private ThreadGroup userThreadGroup;
  6.    private int activeNotesThreadCount;
  7.    private int staticActiveNotesThreadCount;
  8.  
  9.    public AgentThreadGroup(String var1) {
  10.       super("ATG: " + var1);
  11.       this.agentName = var1;
  12.       this.userThreadGroup = new ThreadGroup(this, "UTG: " + var1);
  13.    }
  14.  
  15.    public ThreadGroup getUserThreadGroup() {
  16.       return this.userThreadGroup;
  17.    }
  18.  
  19.    public String getAgentName() {
  20.       return this.agentName;
  21.    }
  22.  
  23.    public int getActiveNotesThreadCount() {
  24.       return this.activeNotesThreadCount;
  25.    }
  26.  
  27.    public void bumpActiveNotesThreadCount(int var1) {
  28.       synchronized(this){}
  29.  
  30.       try {
  31.          this.activeNotesThreadCount += var1;
  32.       } catch (Throwable var4) {
  33.          throw var4;
  34.       }
  35.  
  36.    }
  37.  
  38.    public int getStaticActiveNotesThreadCount() {
  39.       return this.staticActiveNotesThreadCount;
  40.    }
  41.  
  42.    public void bumpStaticActiveNotesThreadCount(int var1) {
  43.       synchronized(this){}
  44.  
  45.       try {
  46.          this.staticActiveNotesThreadCount += var1;
  47.       } catch (Throwable var4) {
  48.          throw var4;
  49.       }
  50.  
  51.    }
  52. }
  53.