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

type Event

source code


Instance Methods
 
__init__(self, impl, number, clsname, context) 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

Inherited from EventBase: __repr__, dispatch

Static Methods
 
wrap(impl) source code
Class Variables
  TIMER_TASK = EventType(name=PN_TIMER_TASK, number=4)
  CONNECTION_INIT = EventType(name=PN_CONNECTION_INIT, number=5)
  CONNECTION_BOUND = EventType(name=PN_CONNECTION_BOUND, number=6)
  CONNECTION_UNBOUND = EventType(name=PN_CONNECTION_UNBOUND, num...
  CONNECTION_LOCAL_OPEN = EventType(name=PN_CONNECTION_LOCAL_OPE...
  CONNECTION_LOCAL_CLOSE = EventType(name=PN_CONNECTION_LOCAL_CL...
  CONNECTION_REMOTE_OPEN = EventType(name=PN_CONNECTION_REMOTE_O...
  CONNECTION_REMOTE_CLOSE = EventType(name=PN_CONNECTION_REMOTE_...
  CONNECTION_FINAL = EventType(name=PN_CONNECTION_FINAL, number=12)
  SESSION_INIT = EventType(name=PN_SESSION_INIT, number=13)
  SESSION_LOCAL_OPEN = EventType(name=PN_SESSION_LOCAL_OPEN, num...
  SESSION_LOCAL_CLOSE = EventType(name=PN_SESSION_LOCAL_CLOSE, n...
  SESSION_REMOTE_OPEN = EventType(name=PN_SESSION_REMOTE_OPEN, n...
  SESSION_REMOTE_CLOSE = EventType(name=PN_SESSION_REMOTE_CLOSE,...
  SESSION_FINAL = EventType(name=PN_SESSION_FINAL, number=18)
  LINK_INIT = EventType(name=PN_LINK_INIT, number=19)
  LINK_LOCAL_OPEN = EventType(name=PN_LINK_LOCAL_OPEN, number=20)
  LINK_LOCAL_CLOSE = EventType(name=PN_LINK_LOCAL_CLOSE, number=22)
  LINK_LOCAL_DETACH = EventType(name=PN_LINK_LOCAL_DETACH, numbe...
  LINK_REMOTE_OPEN = EventType(name=PN_LINK_REMOTE_OPEN, number=21)
  LINK_REMOTE_CLOSE = EventType(name=PN_LINK_REMOTE_CLOSE, numbe...
  LINK_REMOTE_DETACH = EventType(name=PN_LINK_REMOTE_DETACH, num...
  LINK_FLOW = EventType(name=PN_LINK_FLOW, number=26)
  LINK_FINAL = EventType(name=PN_LINK_FINAL, number=27)
  DELIVERY = EventType(name=PN_DELIVERY, number=28)
  TRANSPORT = EventType(name=PN_TRANSPORT, number=29)
  TRANSPORT_ERROR = EventType(name=PN_TRANSPORT_ERROR, number=31)
  TRANSPORT_HEAD_CLOSED = EventType(name=PN_TRANSPORT_HEAD_CLOSE...
  TRANSPORT_TAIL_CLOSED = EventType(name=PN_TRANSPORT_TAIL_CLOSE...
  TRANSPORT_CLOSED = EventType(name=PN_TRANSPORT_CLOSED, number=34)
  REACTOR_INIT = EventType(name=reactor_init, number=10000)
  REACTOR_QUIESCED = EventType(name=reactor_quiesced, number=10001)
  REACTOR_FINAL = EventType(name=reactor_final, number=10002)
  SELECTABLE_INIT = EventType(name=selectable_init, number=10003)
  SELECTABLE_UPDATED = EventType(name=selectable_updated, number...
  SELECTABLE_READABLE = EventType(name=selectable_readable, numb...
  SELECTABLE_WRITABLE = EventType(name=selectable_writable, numb...
  SELECTABLE_EXPIRED = EventType(name=selectable_expired, number...
  SELECTABLE_ERROR = EventType(name=selectable_error, number=10008)
  SELECTABLE_FINAL = EventType(name=selectable_final, number=10009)
Properties
  clazz
  context
Returns the context object associated with the event.
  handler
  reactor
Deprecated: Returns the container (was reactor) associated with the event.
  container
Returns the container associated with the event.
  transport
Returns the transport associated with the event, or null if none is associated with it.
  connection
Returns the connection associated with the event, or null if none is associated with it.
  session
Returns the session associated with the event, or null if none is associated with it.
  link
Returns the link associated with the event, or null if none is associated with it.
  sender
Returns the sender link associated with the event, or null if none is associated with it.
  receiver
Returns the receiver link associated with the event, or null if none is associated with it.
  delivery
Returns the delivery associated with the event, or null if none is associated with it.

Inherited from EventBase: type

Method Details

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

source code 
Overrides: EventBase.__init__

Class Variable Details

CONNECTION_UNBOUND

Value:
EventType(name=PN_CONNECTION_UNBOUND, number=7)

CONNECTION_LOCAL_OPEN

Value:
EventType(name=PN_CONNECTION_LOCAL_OPEN, number=8)

CONNECTION_LOCAL_CLOSE

Value:
EventType(name=PN_CONNECTION_LOCAL_CLOSE, number=10)

CONNECTION_REMOTE_OPEN

Value:
EventType(name=PN_CONNECTION_REMOTE_OPEN, number=9)

CONNECTION_REMOTE_CLOSE

Value:
EventType(name=PN_CONNECTION_REMOTE_CLOSE, number=11)

SESSION_LOCAL_OPEN

Value:
EventType(name=PN_SESSION_LOCAL_OPEN, number=14)

SESSION_LOCAL_CLOSE

Value:
EventType(name=PN_SESSION_LOCAL_CLOSE, number=16)

SESSION_REMOTE_OPEN

Value:
EventType(name=PN_SESSION_REMOTE_OPEN, number=15)

SESSION_REMOTE_CLOSE

Value:
EventType(name=PN_SESSION_REMOTE_CLOSE, number=17)

LINK_LOCAL_DETACH

Value:
EventType(name=PN_LINK_LOCAL_DETACH, number=24)

LINK_REMOTE_CLOSE

Value:
EventType(name=PN_LINK_REMOTE_CLOSE, number=23)

LINK_REMOTE_DETACH

Value:
EventType(name=PN_LINK_REMOTE_DETACH, number=25)

TRANSPORT_HEAD_CLOSED

Value:
EventType(name=PN_TRANSPORT_HEAD_CLOSED, number=32)

TRANSPORT_TAIL_CLOSED

Value:
EventType(name=PN_TRANSPORT_TAIL_CLOSED, number=33)

SELECTABLE_UPDATED

Value:
EventType(name=selectable_updated, number=10004)

SELECTABLE_READABLE

Value:
EventType(name=selectable_readable, number=10005)

SELECTABLE_WRITABLE

Value:
EventType(name=selectable_writable, number=10006)

SELECTABLE_EXPIRED

Value:
EventType(name=selectable_expired, number=10007)

Property Details

clazz

context

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

handler

reactor

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

container

Returns the container associated with the event.

transport

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

connection

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

session

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

link

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

sender

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.

receiver

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.

delivery

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