KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > context > PauseContext


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.object.context;
5
6 import com.tc.async.api.EventContext;
7
8 public class PauseContext implements EventContext {
9
10   public static final PauseContext PAUSE = new PauseContext(true);
11   public static final PauseContext UNPAUSE = new PauseContext(false);
12
13   private final boolean isPause;
14
15   private PauseContext(boolean isPause) {
16     this.isPause = isPause;
17   }
18
19   public boolean getIsPause() {
20     return isPause;
21   }
22
23 }
24
Popular Tags