Class: Rinda::TemplateEntry
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
TupleEntry
|
|
Instance Chain:
self,
TupleEntry,
DRbUndumped
|
|
Inherits: |
Rinda::TupleEntry
|
Defined in: | lib/rinda/tuplespace.rb |
Overview
A TemplateEntry is a Template together with expiry and cancellation data.
Class Method Summary
TupleEntry - Inherited
.new | Creates a TupleEntry based on |
Instance Attribute Summary
TupleEntry - Inherited
#expires, | |
#alive? | A TupleEntry is dead when it is canceled or expired. |
#canceled? | Returns the canceled status. |
#expired? | Has this tuple expired? (true/false). |
Instance Method Summary
-
#===(tuple)
Alias for #match.
-
#match(tuple)
(also: #===)
Matches this
TemplateEntry
againsttuple
.
TupleEntry - Inherited
#[] | Retrieves |
#cancel | Marks this TupleEntry as canceled. |
#fetch | Fetches |
#make_expires |
|
#make_tuple | Creates a Tuple for |
#renew | Reset the expiry time according to |
#size | The size of the tuple. |
#value | Return the object which makes up the tuple itself: the Array or Hash. |
#get_renewer | Returns a valid argument to make_expires and the renewer or nil. |
Constructor Details
This class inherits a constructor from Rinda::TupleEntry
Instance Method Details
#===(tuple)
Alias for #match.
# File 'lib/rinda/tuplespace.rb', line 172
alias === match
#match(tuple) Also known as: #===
Matches this TemplateEntry
against tuple
. See Template#match for details on how a Template matches a Tuple.
# File 'lib/rinda/tuplespace.rb', line 168
def match(tuple) @tuple.match(tuple) end