123456789_123456789_123456789_123456789_123456789_

Class: DRb::GW

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, MonitorMixin
Inherits: Object
Defined in: lib/drb/gw.rb

Overview

The GW provides a synchronized store for participants in the gateway to communicate.

Class Method Summary

Instance Method Summary

Constructor Details

.newGW

Creates a new GW

[ GitHub ]

  
# File 'lib/drb/gw.rb', line 50

def initialize
  super()
  @hash = {}
end

Instance Method Details

#[](key)

Retrieves key from the GW

[ GitHub ]

  
# File 'lib/drb/gw.rb', line 57

def [](key)
  synchronize do
    @hash[key]
  end
end

#[]=(key, v)

Stores value v at key in the GW

[ GitHub ]

  
# File 'lib/drb/gw.rb', line 65

def []=(key, v)
  synchronize do
    @hash[key] = v
  end
end