- Timestamp:
- 07/05/08 22:16:04 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/server/src/ome/services/sessions/SessionContextImpl.java
r2125 r2592 11 11 import java.util.Collections; 12 12 import java.util.List; 13 import java.util.concurrent.atomic.AtomicInteger; 13 14 14 15 import ome.model.meta.Session; 15 16 16 17 public class SessionContextImpl implements SessionContext { 18 19 private final AtomicInteger refCount = new AtomicInteger(0); 17 20 private final Session session; 18 21 private final List<Long> leaderOfGroups; … … 28 31 mGroups)); 29 32 this.roles = Collections.unmodifiableList(new ArrayList(roles)); 33 } 34 35 public int refCount() { 36 return refCount.get(); 37 } 38 39 public int increment() { 40 return refCount.incrementAndGet(); 41 } 42 43 public int decrement() { 44 return refCount.decrementAndGet(); 30 45 } 31 46
