A fake relay queue to use for testing.

This queue doesn't keep track of which messages are waiting to be relayed or are in the process of being relayed.

Instance Variable directory See __init__.
Method __init__
Method done Remove a message from the queue.
Method getEnvelopeFile Get the envelope file for a message in the queue.
Method getPath Return the full base pathname of a message in the queue.
Method createNewMessage Create a new message in the queue.
Method setWaiting Ignore the request to mark a message as waiting to be relayed.
directory =
See __init__.
def __init__(self, directory):
ParametersdirectoryThe pathname of the directory holding messages in the queue. (type: bytes)
def done(self, message):

Remove a message from the queue.

ParametersmessageThe base filename of a message. (type: bytes)
def getEnvelopeFile(self, message):

Get the envelope file for a message in the queue.

ParametersmessageThe base filename of a message. (type: bytes)
ReturnsThe envelope file for the message. (type: file)
def getPath(self, message):

Return the full base pathname of a message in the queue.

ParametersmessageThe base filename of a message. (type: bytes)
ReturnsThe full base pathname of the message. (type: bytes)
def createNewMessage(self):

Create a new message in the queue.

ReturnsThe envelope file and a message receiver for a new message in the queue. (type: 2-tuple of (1) file, (2) FileMessage)
def setWaiting(self, message):

Ignore the request to mark a message as waiting to be relayed.

ParametersmessageThe base filename of a message. (type: bytes)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.