Repository URL to install this package:
|
Version:
2.5 ▾
|
ó
čEYc @ s¼ d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l Z d d l m Z e j
d d d d d
d d e j
d
d d d d e j
d d d d d g Z d Z d e j
f d YZ e j e j d e f d Y Z e j e j d e f d Y Z e j e j d e f d Y Z e j e j d e f d Y Z d e f d YZ e j e j d e f d! Y Z d S(" iÿÿÿÿN( t cfg( t excutils( t timeutils( t
exceptionst rpc_conn_pool_sizet defaulti t deprecated_groupt DEFAULTt helps Size of RPC connection pool.t conn_pool_min_sizei s5 The pool size limit for connections expiration policyt
conn_pool_ttli° s7 The time-to-live in sec of idle connections in the poolc s d d d f d } | S( sÑ Decorator to poll messages in batch
This decorator is used to add message batching support to a
:py:meth:`PollStyleListener.poll` implementation that only polls for a
single message per call.
i c
sL g } | j } | d k r- t | | } n t j | } | d | j t } | d k rv | j | n | d k s | d k r | S| j t } | d k rÎ | d k sÅ | | k rÎ | } n Wd QXt j | c } xY t | | k rA| d k rA | d | j t } | d k ré | j | qé qé WWd QX| S( Ni t timeouti ( t
prefetch_sizet minR t StopWatcht leftovert Truet Nonet appendt len(
t in_selfR t
batch_sizet
batch_timeoutt incomingst driver_prefetcht
timeout_watcht msgt timeout_leftt batch_timeout_watch( t func( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/_drivers/base.pyt wrapper, s( !N( R ( R R ( ( R sQ /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/_drivers/base.pyt batch_poll_helper% s t TransportDriverErrorc B s e Z d Z RS( s4 Base class for transport driver specific exceptions.( t __name__t
__module__t __doc__( ( ( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/_drivers/base.pyR K s t IncomingMessagec B s2 e Z d Z d Z d Z e j d Z RS( sþ The IncomingMessage class represents a single message received from the
messaging backend. Instances of this class are passed to up a server's
messaging processing logic. The backend driver must provide a concrete
derivation of this class which provides the backend specific logic for its
public methods.
:param ctxt: Context metadata provided by sending application.
:type ctxt: dict
:param message: The message as provided by the sending application.
:type message: dict
c C s | | _ | | _ d S( N( t ctxtt message( t selfR% R&