KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > async > api > SEDA


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.async.api;
5
6 import com.tc.async.impl.StageManagerImpl;
7 import com.tc.lang.TCThreadGroup;
8
9 /**
10  * Manages the startup and shutdown of a SEDA environment
11  *
12  * @author steve
13  */

14 public class SEDA {
15   private final StageManager stageManager;
16   private final TCThreadGroup threadGroup;
17
18   public SEDA(TCThreadGroup threadGroup) {
19     this.threadGroup = threadGroup;
20     this.stageManager = new StageManagerImpl(threadGroup);
21   }
22
23   public StageManager getStageManager() {
24     return stageManager;
25   }
26
27   protected TCThreadGroup getThreadGroup() {
28     return this.threadGroup;
29   }
30 }
Popular Tags