ome.services.sessions
Class SessionContext.Count

java.lang.Object
  extended by ome.services.sessions.SessionContext.Count
Enclosing interface:
SessionContext

public static class SessionContext.Count
extends Object

Synchronized counter which can be passed between SessionContext instances as they are recreated.

See Also:
ticket:2804

Constructor Summary
SessionContext.Count(String uuid)
           
 
Method Summary
 int decrement()
          Decrement the current reference 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 current reference count and return the new value atomically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionContext.Count

public SessionContext.Count(String uuid)
Method Detail

get

public int get()
Return the current number of references which this session is aware of.


increment

public int increment()
Increment the current reference count and return the new value atomically.


decrement

public int decrement()
Decrement the current reference count and return the new value atomically.



OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.