Package qpid :: Module api :: Class Sender
[frames] | no frames]

Class Sender

object --+    
         |    
  Lockable --+
             |
            Sender

Sends outgoing messages.

Instance Methods
 
__init__(self, session, index, target)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
send(self, *args, **kwargs)
Send a message.
 
close(self, *args, **kwargs)
Close the Sender.

Inherited from Lockable: lock, notify, notifyAll, unlock, wait

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, session, index, target)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

send(self, *args, **kwargs)

 

Send a message. If the object passed in is of type unicode, str, list, or dict, it will automatically be wrapped in a Message and sent. If it is of type Message, it will be sent directly.

Parameters:
  • object (unicode, str, list, dict, Message) - the message or content to send
Decorators:
  • @synchronized

close(self, *args, **kwargs)

 

Close the Sender.

Decorators:
  • @synchronized