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

IPayload Struct Reference

Inheritance diagram for IPayload:

IPickle IPickleFactory IWritable IReadable IMessage IRemoteCacheLoader Payload ITask Message ClusterEntry InvalidatorPayload Message PathMapping QueuedEntry RollCall List of all members.

Public Member Functions

long getTime ()
void setTime (long time)
void destroy ()
char[] getGuid ()
void write (IWriter w)

Private Member Functions

char[] getGuid ()
Object create (IReader reader)

Detailed Description

IPayload objects are held within an ICache. Each entry can be serialized in the standard fashion, via the IReader/IWriter mechanisms and the IPickle object resurrection facilities.

IPayload objects are expected to extend out across a cluster.

Definition at line 50 of file IPayload.d.


Member Function Documentation

long getTime  ) 
 

Reimplemented in Payload.

Referenced by PlainCache::bind(), PlainCache::extract(), CacheServer::LoaderThread::load(), and NetworkCombo::put().

void setTime long  time  ) 
 

Reimplemented in Payload.

void destroy  ) 
 

Perform whatever cleanup is necessary. Could use ~this() instead, but I prefer it to be truly explicit.

Reimplemented in Payload, QueuedEntry, InvalidatorPayload, and ClusterEntry.

Referenced by CacheInvalidatee::notify().

char [] getGuid  )  [inherited]
 

Identify this serializable class via a char[]. This should be (per class) unique within the domain. Use version numbers or similar mechanism to isolate different implementations of the same class.

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

Referenced by ClusterServer::addCacheLoader(), PickleWriter::freeze(), testClassSerialization(), and testRemoteCacheLoader().

void write IWriter  w  )  [inherited]
 

Reimplemented in Payload, InvalidatorPayload, Message, Task, Channel, RollCall, ResponseLine, Cookie, HttpCookies, HttpMessage, HttpRequest, HttpResponse, HttpTokens, NewlineWriter, FilePath, Token, and Uri.

Referenced by PickleWriter::freeze(), HttpClient::open(), AbstractWriter::put(), testClassIO(), testClassSerialization(), testCompositeIO(), testRemoteCacheLoader(), and HttpRequest::write().

char [] getGuid  )  [inherited]
 

Identify this serializable class via a char[]. This should be (per class) unique within the domain. Use version numbers or similar mechanism to isolate different implementations of the same class.

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

Referenced by TaskServer::addConsumer().

Object create IReader  reader  )  [inherited]
 

This defines the factory method. Each IPickleProxy object provides a factory for creating a deserialized instance. The factory is registered along with the appropriate guid.

Reimplemented in Payload, Message, and Task.

Referenced by PickleRegistry::PickleProxy::create(), testClassSerialization(), and testRemoteCacheLoader().


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