Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

QueuedEntry Class Reference

Inheritance diagram for QueuedEntry:

Payload List of all members.

Public Member Functions

 this (char[] key, IPayload entry)
char[] toString ()

Protected Member Functions

void set (char[] key, IPayload entry)
void reuse (char[] key, IPayload entry)
QueuedEntry prepend (QueuedEntry before)
QueuedEntry append (QueuedEntry after)
QueuedEntry extract ()
void destroy ()

Protected Attributes

char[] key
QueuedEntry prev
QueuedEntry next
IPayload entry

Private Member Functions

long getTime ()
void setTime (long time)
void read (IReader reader)
void write (IWriter writer)
Object create (IReader reader)
Object create ()
char[] getGuid ()

Detailed Description

A doubly-linked list entry, used as a wrapper for queued cache entries. Note that this class itself is a valid cache entry.

Definition at line 270 of file QueuedCache.d.


Member Function Documentation

this char[]  key,
IPayload  entry
[inline]
 

Construct a new linked-list entry around the provided IPayload instance, and associate it with the given key. Note that the key is held here such that it can be referenced by sub-classes which override the reuse() method.

Definition at line 287 of file QueuedCache.d.

References entry.

void set char[]  key,
IPayload  entry
[inline, protected]
 

Set this linked-list entry with the given arguments. Note that the original content is released via a destroy() call.

Definition at line 300 of file QueuedCache.d.

References entry.

void reuse char[]  key,
IPayload  entry
[inline, protected]
 

Overridable method to reuse this linked-list entry. The default behavior is to destroy() the original content.

Definition at line 317 of file QueuedCache.d.

QueuedEntry prepend QueuedEntry  before  )  [inline, protected]
 

Insert this entry into the linked-list just in front of the given entry.

Definition at line 329 of file QueuedCache.d.

QueuedEntry append QueuedEntry  after  )  [inline, protected]
 

Add this entry into the linked-list just after the given entry.

Definition at line 355 of file QueuedCache.d.

QueuedEntry extract  )  [inline, protected]
 

Remove this entry from the linked-list. The previous and next entries are patched together appropriately.

Definition at line 381 of file QueuedCache.d.

References prev.

char [] toString  )  [inline]
 

Return the key belonging to this entry.

Definition at line 401 of file QueuedCache.d.

References prev.

void destroy  )  [inline, protected]
 

Destroy this linked list entry by invoking destroy() on the wrapped IPayload.

Reimplemented from Payload.

Definition at line 413 of file QueuedCache.d.

long getTime  )  [inline, inherited]
 

Return the timestamp associated with this payload

Reimplemented from IPayload.

Definition at line 68 of file Payload.d.

References Payload::time.

Referenced by ChannelCache::lockWhereInvalid().

void setTime long  time  )  [inline, inherited]
 

Set the timestamp of this payload

Reimplemented from IPayload.

Definition at line 79 of file Payload.d.

References time.

void read IReader  reader  )  [inline, inherited]
 

Recover the timestamp from the provided reader

Reimplemented from IReadable.

Reimplemented in InvalidatorPayload, Message, Task, and RollCall.

Definition at line 90 of file Payload.d.

References IReader::get(), and Payload::time.

Referenced by Payload::create(), testProtocol(), and testRemoteCacheLoader().

void write IWriter  writer  )  [inline, inherited]
 

Emit our timestamp to the provided writer

Reimplemented from IWritable.

Reimplemented in InvalidatorPayload, Message, Task, and RollCall.

Definition at line 101 of file Payload.d.

References IWriter::put(), and Payload::time.

Referenced by testProtocol().

Object create IReader  reader  )  [inline, inherited]
 

Create a new instance of a payload, and populate it via read() using the specified reader

Reimplemented from IPickleFactory.

Reimplemented in Message, and Task.

Definition at line 113 of file Payload.d.

References Payload::create(), and Payload::read().

Object create  )  [inline, inherited]
 

Overridable create method that simply instantiates a new instance. May be used to allocate subclassses from a freelist

Reimplemented in InvalidatorPayload, Message, NullMessage, Task, ClusterEntry, and RollCall.

Definition at line 128 of file Payload.d.

Referenced by Payload::create(), and testProtocol().

char [] getGuid  )  [inline, inherited]
 

Return the guid for this payload. This should be unique per payload class, if said class is used in conjunction with the clustering facilities. Inspected by the Pickle utilitiy classes.

Reimplemented from IPickle.

Reimplemented in InvalidatorPayload, Message, NullMessage, Task, and RollCall.

Definition at line 142 of file Payload.d.

Referenced by testProtocol().


Member Data Documentation

char [] key [protected]
 

Definition at line 272 of file QueuedCache.d.

QueuedEntry prev [protected]
 

Definition at line 273 of file QueuedCache.d.

Referenced by extract(), and toString().

QueuedEntry next [protected]
 

Definition at line 273 of file QueuedCache.d.

IPayload entry [protected]
 

Definition at line 275 of file QueuedCache.d.

Referenced by set(), and this().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:09 2004 for Mango by doxygen 1.3.6