xmlBlaster 2.2.0 client API

org.xmlBlaster.client.jmx
Class XmlBlasterInvocationHandler

java.lang.Object
  extended by org.xmlBlaster.client.jmx.XmlBlasterInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, I_Callback

public class XmlBlasterInvocationHandler
extends java.lang.Object
implements I_Callback, java.lang.reflect.InvocationHandler


Constructor Summary
XmlBlasterInvocationHandler(java.lang.String serverName, Global global)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Method Invoke is called by the client, The MethodName is extracted and wrapped into an MethodInvocation Object
 java.lang.String update(java.lang.String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos)
          Update invoked, when Message on subscribed Topic is received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlBlasterInvocationHandler

public XmlBlasterInvocationHandler(java.lang.String serverName,
                                   Global global)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Method Invoke is called by the client, The MethodName is extracted and wrapped into an MethodInvocation Object

The MethodInvocation is published to the the server.
The Mapping for the return values after the invocation is done via a callbackbuffer

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

update

public java.lang.String update(java.lang.String cbSessionId,
                               UpdateKey updateKey,
                               byte[] content,
                               UpdateQos updateQos)
Update invoked, when Message on subscribed Topic is received. Most probably it is the returning Object from a recent MethodInvocation

Specified by:
update in interface I_Callback
Parameters:
cbSessionId - The session ID specified by the client which registered the callback. You can specify a cbSessionId during connection (with ConnectQos) and this is bounced back here so you can authenticate the message.
updateKey - The arrived key containing the topic name
content - The arrived message content. This is your payload.
See Also:
I_XmlBlasterAccess

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.