Universal Messaging 9.10 | Universal Messaging Developer Guide | Enterprise APIs | Enterprise Developer's Guide for Java | General Features | Events
 
Events
A Universal Messaging Event (nConsumeEvent) is the object that is published to a Universal Messaging 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 Event Dictionary (see Event Dictionaries).
Each nConsumeEvent object has an nEventAtrributes object associated with it which contains all available meta data associated with the event
Constructing an Event
In this Java code snippet, we construct our Universal Messaging Event object (nConsumeEvent), and, in this example, pass a byte array data into the constructor:

nConsumeEvent evt = new nConsumeEvent( "String", "Hello World".getBytes() );

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.