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.ObjectSynchronized counter which can be passed betweenSessionContextinstances 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 intdecrement()Decrement the currentreference countand return the new value atomically.intget()Return the current number of references which this session is aware of.intincrement()Increment the currentreference countand 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 countand return the new value atomically.
-
decrement
public int decrement()
Decrement the currentreference countand return the new value atomically.
-
-