ome.services.sessions.state
Interface SessionCache.StaleCacheListener

All Known Implementing Classes:
SessionManagerImpl
Enclosing class:
SessionCache

public static interface SessionCache.StaleCacheListener

Observer pattern used to clear the blocked SessionCache#needsUpdate state, which prevents all further calls from happening.


Method Summary
 void prepareReload()
          Called once before all the reload methods are called to push out the current state to database and trigger any exceptions as the current user.
 SessionContext reload(SessionContext context)
          Method called for every active session in the cache.
 

Method Detail

prepareReload

void prepareReload()
Called once before all the reload methods are called to push out the current state to database and trigger any exceptions as the current user. Reload must be executed as root and so can't be run with readOnly set to false.


reload

SessionContext reload(SessionContext context)
Method called for every active session in the cache. The returned SessionContext will be used to replace the current one. Any runtime exception can be thrown to show that an update is not possible.



OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

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