t.m.m._MaildirNameGenerator : class documentation

Part of twisted.mail.maildir View Source View In Hierarchy

Utility class to generate a unique maildir name
Method __init__ Undocumented
Method generate Return a string which is intended to unique across all calls to this function (across all processes, reboots, etc).
Instance Variable _clock An IReactorTime provider which will be used to learn the current time to include in names returned by generate so that they sort properly.
_clock =
An IReactorTime provider which will be used to learn the current time to include in names returned by generate so that they sort properly.
def __init__(self, clock): (source)
Undocumented
def generate(self): (source)
Return a string which is intended to unique across all calls to this function (across all processes, reboots, etc).

Strings returned by earlier calls to this method will compare less than strings returned by later calls as long as the clock provided doesn't go backwards.

API Documentation for Twisted, generated by pydoctor at 2013-04-03 11:20:05.