• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2592 for trunk/components/server/src/ome/services/sessions/SessionContext.java

Show
Ignore:
Timestamp:
07/05/08 22:16:04 (5 months ago)
Author:
jmoore
Message:

ticket:1018 - Initial version of OmeroSessions reference counting

Implementation is incomplete in the blitz case since there are two
possible "closers" - the user and the glacier session, which must
be taken into account.

Files:
1 modified

  • trunk/components/server/src/ome/services/sessions/SessionContext.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/components/server/src/ome/services/sessions/SessionContext.java

    r2124 r2592  
    2424 
    2525    Session getSession(); 
     26 
    2627    List<String> getUserRoles(); 
    2728 
     29    // Reference counting 
     30 
     31    /** 
     32     * Return the current number of references which this session is aware of. 
     33     */ 
     34    int refCount(); 
     35 
     36    /** 
     37     * Increment the current {@link #refCount() reference count} and return the 
     38     * new value atomically. 
     39     */ 
     40    int increment(); 
     41 
     42    /** 
     43     * Decrement the current {@link #refCount() reference count} and return the 
     44     * new value atomically. 
     45     */ 
     46    int decrement(); 
    2847} 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/