t.s.p.RemoteCache(RemoteCopy, Serializable) : class documentation

Part of twisted.spread.pb View Source View In Hierarchy

Known subclasses: twisted.spread.publish.RemotePublished

A cache is a local representation of a remote Cacheable object.

This represents the last known state of this object. It may also have methods invoked on it -- in order to update caches, the cached class generates a pb.RemoteReference to this object as it is originally sent.

Much like copy, I will be invoked with no arguments. Do not implement a constructor that requires arguments in one of my subclasses.

Method remoteMessageReceived A remote message has been received. Dispatch it appropriately.
Method jellyFor serialize me (only for the broker I'm for) as the original cached reference
Method unjellyFor Perform the inverse operation of Jellyable.jellyFor.
Method __cmp__ Compare me [to another RemoteCache.
Method __hash__ Hash me.
Method __del__ Do distributed reference counting on finalize.

Inherited from Jellyable (via Serializable):

Method getStateFor Undocumented

Inherited from Jellyable (via Serializable):

Method getStateFor Undocumented

Inherited from Jellyable (via Serializable):

Method getStateFor Undocumented

Inherited from Jellyable (via Serializable):

Method getStateFor Undocumented
def remoteMessageReceived(self, broker, message, args, kw): (source)

A remote message has been received. Dispatch it appropriately.

The default implementation is to dispatch to a method called 'observe_messagename' and call it on my with the same arguments.

def jellyFor(self, jellier): (source)

serialize me (only for the broker I'm for) as the original cached reference

def unjellyFor(self, unjellier, jellyList): (source)

Perform the inverse operation of Jellyable.jellyFor.

See Alsotwisted.spread.interfaces.IUnjellyable.unjellyFor
def __cmp__(self, other): (source)

Compare me [to another RemoteCache.

def __hash__(self): (source)

Hash me.

def __del__(self): (source)

Do distributed reference counting on finalize.

API Documentation for Twisted, generated by pydoctor at 2015-04-13 15:26:48.