Nirvana VBA : Nirvana Events
A Nirvana Event (nConsumeEvent) is the object that is published to a Nirvana channel, queue or P2P service. It is stored by the server and then passed to consumers as and when required.
Events can contain simple byte array data, or more complex data structures such as an Nirvana Event Dictionary (nEventProperties).
Constructing an Event
In this VBA code snippet, we construct our Nirvana Event object, as well as a Nirvana Event Dictionary object (nEventProperties) for our Nirvana Event:
Dim props As New nEventProperties
Call props.put("examplekey", "hello world")
Dim evt As New nConsumeEvent
Call evt.init_2(props)
Here the function evt.init_2() is used. The nConsumeEvent class currently has 3 initialise methods but Excel does not support overloading so renames these methods to init_1 init_2 etc.
