01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.async.api;
05:
06: import com.tc.async.impl.StageManagerImpl;
07: import com.tc.lang.TCThreadGroup;
08:
09: /**
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: }
|