Package proton :: Module _events :: Class Event
[frames] | no frames]

Class Event

source code

object --+    
         |    
 EventBase --+
             |
            Event

Instance Methods
 
__init__(self, impl, number, clsname, context)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
clazz(self) source code
 
context(self)
Returns the context object associated with the event.
source code
 
handler(self) source code
 
reactor(self)
Deprecated: Returns the container (was reactor) associated with the event.
source code
 
container(self)
Returns the container associated with the event.
source code
 
__getattr__(self, name)
This will look for a property of the event as an attached context object of the same type as the property (but lowercase)
source code
 
transport(self)
Returns the transport associated with the event, or null if none is associated with it.
source code
 
connection(self)
Returns the connection associated with the event, or null if none is associated with it.
source code
 
session(self)
Returns the session associated with the event, or null if none is associated with it.
source code
 
link(self)
Returns the link associated with the event, or null if none is associated with it.
source code
 
sender(self)
Returns the sender link associated with the event, or null if none is associated with it.
source code
 
receiver(self)
Returns the receiver link associated with the event, or null if none is associated with it.
source code
 
delivery(self)
Returns the delivery associated with the event, or null if none is associated with it.
source code

Inherited from EventBase: __repr__, dispatch, type

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
wrap(impl) source code
Class Variables
  TIMER_TASK = _core(PN_TIMER_TASK, "on_timer_task")
  CONNECTION_INIT = _core(PN_CONNECTION_INIT, "on_connection_init")
  CONNECTION_BOUND = _core(PN_CONNECTION_BOUND, "on_connection_b...
  CONNECTION_UNBOUND = _core(PN_CONNECTION_UNBOUND, "on_connecti...
  CONNECTION_LOCAL_OPEN = _core(PN_CONNECTION_LOCAL_OPEN, "on_co...
  CONNECTION_LOCAL_CLOSE = _core(PN_CONNECTION_LOCAL_CLOSE, "on_...
  CONNECTION_REMOTE_OPEN = _core(PN_CONNECTION_REMOTE_OPEN, "on_...
  CONNECTION_REMOTE_CLOSE = _core(PN_CONNECTION_REMOTE_CLOSE, "o...
  CONNECTION_FINAL = _core(PN_CONNECTION_FINAL, "on_connection_f...
  SESSION_INIT = _core(PN_SESSION_INIT, "on_session_init")
  SESSION_LOCAL_OPEN = _core(PN_SESSION_LOCAL_OPEN, "on_session_...
  SESSION_LOCAL_CLOSE = _core(PN_SESSION_LOCAL_CLOSE, "on_sessio...
  SESSION_REMOTE_OPEN = _core(PN_SESSION_REMOTE_OPEN, "on_sessio...
  SESSION_REMOTE_CLOSE = _core(PN_SESSION_REMOTE_CLOSE, "on_sess...
  SESSION_FINAL = _core(PN_SESSION_FINAL, "on_session_final")
  LINK_INIT = _core(PN_LINK_INIT, "on_link_init")
  LINK_LOCAL_OPEN = _core(PN_LINK_LOCAL_OPEN, "on_link_local_open")
  LINK_LOCAL_CLOSE = _core(PN_LINK_LOCAL_CLOSE, "on_link_local_c...
  LINK_LOCAL_DETACH = _core(PN_LINK_LOCAL_DETACH, "on_link_local...
  LINK_REMOTE_OPEN = _core(PN_LINK_REMOTE_OPEN, "on_link_remote_...
  LINK_REMOTE_CLOSE = _core(PN_LINK_REMOTE_CLOSE, "on_link_remot...
  LINK_REMOTE_DETACH = _core(PN_LINK_REMOTE_DETACH, "on_link_rem...
  LINK_FLOW = _core(PN_LINK_FLOW, "on_link_flow")
  LINK_FINAL = _core(PN_LINK_FINAL, "on_link_final")
  DELIVERY = _core(PN_DELIVERY, "on_delivery")
  TRANSPORT = _core(PN_TRANSPORT, "on_transport")
  TRANSPORT_ERROR = _core(PN_TRANSPORT_ERROR, "on_transport_error")
  TRANSPORT_HEAD_CLOSED = _core(PN_TRANSPORT_HEAD_CLOSED, "on_tr...
  TRANSPORT_TAIL_CLOSED = _core(PN_TRANSPORT_TAIL_CLOSED, "on_tr...
  TRANSPORT_CLOSED = _core(PN_TRANSPORT_CLOSED, "on_transport_cl...
  REACTOR_INIT = _internal("reactor_init")
  REACTOR_QUIESCED = _internal("reactor_quiesced")
  REACTOR_FINAL = _internal("reactor_final")
  SELECTABLE_INIT = _internal("selectable_init")
  SELECTABLE_UPDATED = _internal("selectable_updated")
  SELECTABLE_READABLE = _internal("selectable_readable")
  SELECTABLE_WRITABLE = _internal("selectable_writable")
  SELECTABLE_EXPIRED = _internal("selectable_expired")
  SELECTABLE_ERROR = _internal("selectable_error")
  SELECTABLE_FINAL = _internal("selectable_final")
Properties

Inherited from object: __class__

Method Details

__init__(self, impl, number, clsname, context)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

clazz(self)

source code 
Decorators:
  • @property

context(self)

source code 

Returns the context object associated with the event. The type of this depends on the type of event.

Decorators:
  • @property

handler(self)

source code 
Decorators:
  • @property
Overrides: EventBase.handler

reactor(self)

source code 

Deprecated: Returns the container (was reactor) associated with the event.

Decorators:
  • @property

container(self)

source code 

Returns the container associated with the event.

Decorators:
  • @property

transport(self)

source code 

Returns the transport associated with the event, or null if none is associated with it.

Decorators:
  • @property

connection(self)

source code 

Returns the connection associated with the event, or null if none is associated with it.

Decorators:
  • @property

session(self)

source code 

Returns the session associated with the event, or null if none is associated with it.

Decorators:
  • @property

link(self)

source code 

Returns the link associated with the event, or null if none is associated with it.

Decorators:
  • @property

sender(self)

source code 

Returns the sender link associated with the event, or null if none is associated with it. This is essentially an alias for link(), that does an additional check on the type of the link.

Decorators:
  • @property

receiver(self)

source code 

Returns the receiver link associated with the event, or null if none is associated with it. This is essentially an alias for link(), that does an additional check on the type of the link.

Decorators:
  • @property

delivery(self)

source code 

Returns the delivery associated with the event, or null if none is associated with it.

Decorators:
  • @property

Class Variable Details

CONNECTION_BOUND

Value:
_core(PN_CONNECTION_BOUND, "on_connection_bound")

CONNECTION_UNBOUND

Value:
_core(PN_CONNECTION_UNBOUND, "on_connection_unbound")

CONNECTION_LOCAL_OPEN

Value:
_core(PN_CONNECTION_LOCAL_OPEN, "on_connection_local_open")

CONNECTION_LOCAL_CLOSE

Value:
_core(PN_CONNECTION_LOCAL_CLOSE, "on_connection_local_close")

CONNECTION_REMOTE_OPEN

Value:
_core(PN_CONNECTION_REMOTE_OPEN, "on_connection_remote_open")

CONNECTION_REMOTE_CLOSE

Value:
_core(PN_CONNECTION_REMOTE_CLOSE, "on_connection_remote_close")

CONNECTION_FINAL

Value:
_core(PN_CONNECTION_FINAL, "on_connection_final")

SESSION_LOCAL_OPEN

Value:
_core(PN_SESSION_LOCAL_OPEN, "on_session_local_open")

SESSION_LOCAL_CLOSE

Value:
_core(PN_SESSION_LOCAL_CLOSE, "on_session_local_close")

SESSION_REMOTE_OPEN

Value:
_core(PN_SESSION_REMOTE_OPEN, "on_session_remote_open")

SESSION_REMOTE_CLOSE

Value:
_core(PN_SESSION_REMOTE_CLOSE, "on_session_remote_close")

LINK_LOCAL_CLOSE

Value:
_core(PN_LINK_LOCAL_CLOSE, "on_link_local_close")

LINK_LOCAL_DETACH

Value:
_core(PN_LINK_LOCAL_DETACH, "on_link_local_detach")

LINK_REMOTE_OPEN

Value:
_core(PN_LINK_REMOTE_OPEN, "on_link_remote_open")

LINK_REMOTE_CLOSE

Value:
_core(PN_LINK_REMOTE_CLOSE, "on_link_remote_close")

LINK_REMOTE_DETACH

Value:
_core(PN_LINK_REMOTE_DETACH, "on_link_remote_detach")

TRANSPORT_HEAD_CLOSED

Value:
_core(PN_TRANSPORT_HEAD_CLOSED, "on_transport_head_closed")

TRANSPORT_TAIL_CLOSED

Value:
_core(PN_TRANSPORT_TAIL_CLOSED, "on_transport_tail_closed")

TRANSPORT_CLOSED

Value:
_core(PN_TRANSPORT_CLOSED, "on_transport_closed")