Class: Arrow::Session::NullLock
- Inherits:
 - 
      Lock
      
        
- Object
 - Arrow::Object
 - Lock
 - Arrow::Session::NullLock
 
 - Defined in:
 - lib/arrow/session/nulllock.rb
 
Overview
The Arrow::Session::NullLock class, a derivative of Arrow::Session::Lock. This is a null lock, in that it does not lock. This is to be used with an ActiveRecord session store that uses Optomistic Concurrency Control.
VCS Id
$Id$
Authors
Jeremiah Jordan
Please see the file LICENSE in the top-level directory for licensing details.
Constant Summary
Constants inherited from Lock
Instance Method Summary
- - (Object) acquire_read_lock(blocking)
 - - (Object) acquire_write_lock(blocking)
 - 
  
    
      - (NullLock) initialize(uri, id) 
    
    
  
  
    constructor
  
  
  
  
  
  
    
A new instance of NullLock.
 - - (Object) release_read_lock
 - - (Object) release_write_lock
 
Methods inherited from Lock
create, derivativeDirs, #finish, #locked?, #read_lock, #read_locked?, #read_unlock, #release_all_locks, #with_read_lock, #with_write_lock, #write_lock, #write_locked?, #write_unlock
Methods inherited from Arrow::Object
deprecate_class_method, deprecate_method, inherited
Methods included from Arrow::Loggable
Constructor Details
- (NullLock) initialize(uri, id)
A new instance of NullLock
      22 23 24  | 
    
      # File 'lib/arrow/session/nulllock.rb', line 22 def initialize( uri, id ) super end  | 
  
Instance Method Details
- (Object) acquire_read_lock(blocking)
      26 27 28  | 
    
      # File 'lib/arrow/session/nulllock.rb', line 26 def acquire_read_lock(blocking) true end  | 
  
- (Object) acquire_write_lock(blocking)
      30 31 32  | 
    
      # File 'lib/arrow/session/nulllock.rb', line 30 def acquire_write_lock(blocking) true end  | 
  
- (Object) release_read_lock
      34 35 36  | 
    
      # File 'lib/arrow/session/nulllock.rb', line 34 def release_read_lock true end  | 
  
- (Object) release_write_lock
      38 39 40  | 
    
      # File 'lib/arrow/session/nulllock.rb', line 38 def release_write_lock true end  |