Package proton :: Class Event

[frames] | no frames]

# Class Event

source code

         object --+
                  |
    wrapper.Wrapper --+
                      |
         object --+   |
                  |   |
          EventBase --+
                      |
                     Event

Instance Methods

__init__(self, impl, number) x.__init__(...) initializes x; see help(type(x)) for signature | source code

__repr__(self) repr(x) | source code

dispatch(self, handler, type=None) | source code

Inherited from `wrapper.Wrapper`: `__del__`, `__delattr__`, `__eq__`, `__getattr__`, `__hash__`, `__ne__`, `__setattr__` Inherited from `object`: `__format__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__str__`, `__subclasshook__`

Static Methods

wrap(impl, number=None) | source code

Class Variables
| CONNECTION_BOUND = `PN_CONNECTION_BOUND`
| CONNECTION_FINAL = `PN_CONNECTION_FINAL`
| CONNECTION_INIT = `PN_CONNECTION_INIT`
| CONNECTION_LOCAL_CLOSE = `PN_CONNECTION_LOCAL_CLOSE`
| CONNECTION_LOCAL_OPEN = `PN_CONNECTION_LOCAL_OPEN`
| CONNECTION_REMOTE_CLOSE = `PN_CONNECTION_REMOTE_CLOSE`
| CONNECTION_REMOTE_OPEN = `PN_CONNECTION_REMOTE_OPEN`
| CONNECTION_UNBOUND = `PN_CONNECTION_UNBOUND`
| DELIVERY = `PN_DELIVERY`
| LINK_FINAL = `PN_LINK_FINAL`
| LINK_FLOW = `PN_LINK_FLOW`
| LINK_INIT = `PN_LINK_INIT`
| LINK_LOCAL_CLOSE = `PN_LINK_LOCAL_CLOSE`
| LINK_LOCAL_DETACH = `PN_LINK_LOCAL_DETACH`
| LINK_LOCAL_OPEN = `PN_LINK_LOCAL_OPEN`
| LINK_REMOTE_CLOSE = `PN_LINK_REMOTE_CLOSE`
| LINK_REMOTE_DETACH = `PN_LINK_REMOTE_DETACH`
| LINK_REMOTE_OPEN = `PN_LINK_REMOTE_OPEN`
| REACTOR_FINAL = `PN_REACTOR_FINAL`
| REACTOR_INIT = `PN_REACTOR_INIT`
| REACTOR_QUIESCED = `PN_REACTOR_QUIESCED`
| SELECTABLE_ERROR = `PN_SELECTABLE_ERROR`
| SELECTABLE_EXPIRED = `PN_SELECTABLE_EXPIRED`
| SELECTABLE_FINAL = `PN_SELECTABLE_FINAL`
| SELECTABLE_INIT = `PN_SELECTABLE_INIT`
| SELECTABLE_READABLE = `PN_SELECTABLE_READABLE`
| SELECTABLE_UPDATED = `PN_SELECTABLE_UPDATED`
| SELECTABLE_WRITABLE = `PN_SELECTABLE_WRITABLE`
| SESSION_FINAL = `PN_SESSION_FINAL`
| SESSION_INIT = `PN_SESSION_INIT`
| SESSION_LOCAL_CLOSE = `PN_SESSION_LOCAL_CLOSE`
| SESSION_LOCAL_OPEN = `PN_SESSION_LOCAL_OPEN`
| SESSION_REMOTE_CLOSE = `PN_SESSION_REMOTE_CLOSE`
| SESSION_REMOTE_OPEN = `PN_SESSION_REMOTE_OPEN`
| TIMER_TASK = `PN_TIMER_TASK`
| TRANSPORT = `PN_TRANSPORT`
| TRANSPORT_CLOSED = `PN_TRANSPORT_CLOSED`
| TRANSPORT_ERROR = `PN_TRANSPORT_ERROR`
| TRANSPORT_HEAD_CLOSED = `PN_TRANSPORT_HEAD_CLOSED`
| TRANSPORT_TAIL_CLOSED = `PN_TRANSPORT_TAIL_CLOSED`

Properties
| clazz
| connection Returns the connection associated with the event, or null if none is associated with it.
| context Returns the context object associated with the event.
| delivery Returns the delivery 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.
| reactor Returns the reactor associated with the event.
| receiver Returns the receiver 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.
| session Returns the session associated with the event, or null if none is associated with it.
| transport Returns the transport associated with the event, or null if none is associated with it.
Inherited from `object`: `__class__`

Method Details

### __init__(self, impl, number)
(Constructor)

source code

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

Overrides: object.__init__
  (inherited documentation)

### __repr__(self)
(Representation operator)

source code

repr(x)

Overrides: object.__repr__
  (inherited documentation)

### dispatch(self, handler, type=None)

source code

Overrides: EventBase.dispatch

Property Details

### clazz

Get Method:
  unreachable.clazz(self)

### connection

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

Get Method:
  unreachable.connection(self) - Returns the connection associated with the event, or null if none is associated with it.

### context

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

Get Method:
  unreachable.context(self) - Returns the context object associated with the event.

### delivery

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

Get Method:
  unreachable.delivery(self) - Returns the delivery 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.

Get Method:
  unreachable.link(self) - Returns the link associated with the event, or null if none is associated with it.

### reactor

Returns the reactor associated with the event.

Get Method:
  unreachable.reactor(self) - Returns the reactor associated with the event.

### 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 checkon the type of the link.

Get Method:
  unreachable.receiver(self) - Returns the receiver 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 checkon the type of the link.

Get Method:
  unreachable.sender(self) - Returns the sender link 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.

Get Method:
  unreachable.session(self) - Returns the session associated with the event, or null if none is associated with it.

### transport

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

Get Method:
  unreachable.transport(self) - Returns the transport associated with the event, or null if none is associated with it.