Class

TupleEntry

Extends:

Includes:

A TupleEntry is a Tuple (i.e. a possible entry in some Tuplespace) together with expiry and cancellation data.

Public Attributes
expires
Public Methods
[] Retrieves key from the tuple.
alive? A TupleEntry is dead when it is canceled or expired.
cancel Marks this TupleEntry as canceled.
canceled? Returns the canceled status.
expired? Has this tuple expired? (true/false).
fetch Fetches key from the tuple.
make_expires Returns an expiry Time based on sec which can be one of:
make_tuple Creates a Rinda::Tuple for ary.
new Creates a TupleEntry based on ary with an optional renewer or expiry time sec.
renew Reset the expiry time according to sec_or_renewer.
size The size of the tuple.
value Return the object which makes up the tuple itself: the Array or Hash.
Private Methods
get_renewer Returns a valid argument to make_expires and the renewer or nil.
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.