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

Class Event

source code


Instance Methods
 
__init__(self, impl, number) source code
 
copy(self) source code
 
clazz(self) source code
 
root(self) source code
 
context(self)
Returns the context object associated with the event.
source code
 
dispatch(self, handler, type=None) source code
 
reactor(self)
Returns the reactor associated with the event.
source code
 
__getattr__(self, name) 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
 
__repr__(self) source code

Inherited from wrapper.Wrapper: __del__, __delattr__, __eq__, __hash__, __ne__, __setattr__

Static Methods
 
wrap(impl, number=None) source code
Class Variables
  REACTOR_INIT = _core(PN_REACTOR_INIT, "on_reactor_init")
  REACTOR_QUIESCED = _core(PN_REACTOR_QUIESCED, "on_reactor_quie...
  REACTOR_FINAL = _core(PN_REACTOR_FINAL, "on_reactor_final")
  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...
  SELECTABLE_INIT = _core(PN_SELECTABLE_INIT, "on_selectable_init")
  SELECTABLE_UPDATED = _core(PN_SELECTABLE_UPDATED, "on_selectab...
  SELECTABLE_READABLE = _core(PN_SELECTABLE_READABLE, "on_select...
  SELECTABLE_WRITABLE = _core(PN_SELECTABLE_WRITABLE, "on_select...
  SELECTABLE_EXPIRED = _core(PN_SELECTABLE_EXPIRED, "on_selectab...
  SELECTABLE_ERROR = _core(PN_SELECTABLE_ERROR, "on_selectable_e...
  SELECTABLE_FINAL = _core(PN_SELECTABLE_FINAL, "on_selectable_f...
Method Details

__init__(self, impl, number)
(Constructor)

source code 
Overrides: EventBase.__init__

clazz(self)

source code 
Decorators:
  • @property

root(self)

source code 
Decorators:
  • @property

context(self)

source code 

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

Decorators:
  • @property

dispatch(self, handler, type=None)

source code 
Overrides: EventBase.dispatch

reactor(self)

source code 

Returns the reactor associated with the event.

Decorators:
  • @property

__getattr__(self, name)
(Qualification operator)

source code 
Overrides: wrapper.Wrapper.__getattr__

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 checkon 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 checkon 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

__repr__(self)
(Representation operator)

source code 
Overrides: wrapper.Wrapper.__repr__

Class Variable Details

REACTOR_QUIESCED

Value:
_core(PN_REACTOR_QUIESCED, "on_reactor_quiesced")

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")

SELECTABLE_UPDATED

Value:
_core(PN_SELECTABLE_UPDATED, "on_selectable_updated")

SELECTABLE_READABLE

Value:
_core(PN_SELECTABLE_READABLE, "on_selectable_readable")

SELECTABLE_WRITABLE

Value:
_core(PN_SELECTABLE_WRITABLE, "on_selectable_writable")

SELECTABLE_EXPIRED

Value:
_core(PN_SELECTABLE_EXPIRED, "on_selectable_expired")

SELECTABLE_ERROR

Value:
_core(PN_SELECTABLE_ERROR, "on_selectable_error")

SELECTABLE_FINAL

Value:
_core(PN_SELECTABLE_FINAL, "on_selectable_final")