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

copy(self) | source code

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

__getattr__(self, name) | source code

__repr__(self) repr(x) | source code

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

Properties
| clazz
| root
| context Returns the context object associated with the event.
| reactor Returns the reactor 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 `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)

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

source code

Overrides: EventBase.dispatch

### __getattr__(self, name)
(Qualification operator)

source code

Overrides: wrapper.Wrapper.__getattr__

### __repr__(self)
(Representation operator)

source code

repr(x)

Overrides: object.__repr__
  (inherited documentation)

Property Details

### clazz

Get Method:
  unreachable.clazz(self)

### root

Get Method:
  unreachable.root(self)

### 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.

### reactor

Returns the reactor associated with the event.

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

### 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.

### 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.

### 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.

### 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.

### 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.

### 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.

### 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.