Package ome.services.sessions
Class SessionContext.Count
- java.lang.Object
-
- ome.services.sessions.SessionContext.Count
-
- Enclosing interface:
- SessionContext
public static class SessionContext.Count extends java.lang.Object
Synchronized counter which can be passed betweenSessionContext
instances as they are recreated.- See Also:
- ticket:2804
-
-
Constructor Summary
Constructors Constructor Description Count(java.lang.String uuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decrement()
Decrement the currentreference count
and return the new value atomically.int
get()
Return the current number of references which this session is aware of.int
increment()
Increment the currentreference count
and return the new value atomically.
-
-
-
Method Detail
-
get
public int get()
Return the current number of references which this session is aware of.
-
increment
public int increment()
Increment the currentreference count
and return the new value atomically.
-
decrement
public int decrement()
Decrement the currentreference count
and return the new value atomically.
-
-