Zyre::
Event class
Superclass | rb_cObject |
Extended With |
|
An event read from a Zyre
network.
Refs: - github.com/zeromq/zyre#readme
Public Class Methods
Read the next event from the given Zyre::Node
and wrap it in a Zyre::Event
.
Create an event in memory without going through a Zyre::Node
. This is useful for testing.
uuid = UUID.generate event = Zyre::Event.synthesized( :ENTER, uuid, peer_name
: ‘node1’ ) expect( some_system.handle_event(event) ).to have_handled_an_enter_event
Given the name
of an event type, return the Zyre::Event
subclass that corresponds to it.
Return the event type as Zyre
refers to it.
Public Instance Methods
Returns the group name that a SHOUT event was sent to
Returns value of the header name
from the message headers obtained by ENTER. Return nil if no value was found.
Returns the event headers, or NULL if there are none
Return a string describing this event, suitable for debugging.
Provide the details of the inspect message. Defaults to an empty string.
Returns true
if the specified criteria
match attribute of the event.
Returns the data from the first frame of the message from the receiver.
Return the number of frames present in the event’s message (if it has one). Returns nil if there is no message.
Returns true
if the receiving event has a multipart message.
Returns the data from every frame of the message from the receiver.
Return the sending peer’s ipaddress as a string
Return the sending peer’s public name as a string
Return the sending peer’s uuid as a string
Print event to zsys log
Returns event type as a Symbol. Possible values are: :ENTER, :EXIT, :JOIN, :LEAVE, :EVASIVE, :WHISPER, and :SHOUT and for the local node: :STOP