Class

TupleSpace

Extends:

Includes: ,

The Tuplespace manages access to the tuples it contains, ensuring mutual exclusion requirements are met.

The sec option for the write, take, move, read and notify methods may either be a number of seconds or a Renewer object.

Public Methods
move Moves tuple to port.
new Creates a new TupleSpace. period is used to control how often to look for dead tuples after modifications to the TupleSpace.
notify Registers for notifications of event. Returns a NotifyTemplateEntry. See NotifyTemplateEntry for examples of how to listen for notifications.
read Reads tuple, but does not remove it.
read_all Returns all tuples matching tuple. Does not remove the found tuples.
take Removes tuple
write Adds tuple
Private Methods
keep_clean Removes dead tuples.
need_keeper? Checks the tuplespace to see if it needs cleaning.
notify_event Notifies all registered listeners for event of a status change of tuple.
start_keeper Creates a thread that scans the tuplespace for expired tuples.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.