1 /*------------------------------------------------------------------------------
 2 Name:      I_CallbackRaw.java
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 package org.xmlBlaster.client;
 7 
 8 import org.xmlBlaster.util.XmlBlasterException;
 9 import org.xmlBlaster.util.MsgUnitRaw;
10 
11 
12 /**
13  * This is a little helper class is the same as the CORBA generated
14  * <pre>
15  *    org.xmlBlaster.protocol.corba.clientIdl.BlasterCallbackOperations
16  * </pre>
17  * but it is independent of the protocol type.
18  * <p>
19  * Its purpose is to deliver Java clients the asynchronous message updates
20  * through the update() method.
21  * @author xmlBlaster@marcelruff.info
22  */
23 public interface I_CallbackRaw
24 {
25    /**
26     * This is the callback method invoked from xmlBlaster server
27     * informing the client in an asynchronous mode about a new message.
28     * <p />
29     * @param msgUnitArr Array of MsgUnitRaw, containing xmlKey,content,qos
30     * @return For every message a return QoS
31     */
32    public String[] update(String cbSessionId, org.xmlBlaster.util.MsgUnitRaw[] msgUnitArr) throws XmlBlasterException;
33 
34    /**
35     * The oneway variant without a return value or exception
36     */
37    public void updateOneway(String cbSessionId, org.xmlBlaster.util.MsgUnitRaw[] msgUnitArr);
38 }


syntax highlighted by Code2HTML, v. 0.9.1