Class: Rinda::TemplateEntry

Inherits:
TupleEntry show all
Defined in:
lib/rinda/tuplespace.rb

Overview

A TemplateEntry is a Template together with expiry and cancellation data.

Direct Known Subclasses

NotifyTemplateEntry, WaitTemplateEntry

Instance Attribute Summary

Attributes inherited from TupleEntry

#expires

Instance Method Summary collapse

Methods inherited from TupleEntry

#[], #alive?, #cancel, #canceled?, #expired?, #fetch, #initialize, #make_expires, #renew, #size, #value

Constructor Details

This class inherits a constructor from Rinda::TupleEntry

Instance Method Details

#make_tuple(ary) ⇒ Object

:nodoc:


174
175
176
# File 'lib/rinda/tuplespace.rb', line 174

def make_tuple(ary) # :nodoc:
  Rinda::Template.new(ary)
end

#match(tuple) ⇒ Object Also known as: ===

Matches this TemplateEntry against tuple. See Template#match for details on how a Template matches a Tuple.


168
169
170
# File 'lib/rinda/tuplespace.rb', line 168

def match(tuple)
  @tuple.match(tuple)
end