Package org.rzo.netty.ahessian.rpc.callback

Examples of org.rzo.netty.ahessian.rpc.callback.ClientCallback


  private void handleCallbackReply(CallbackReplyMessage message)
  {
    Long callbackId = message.getCallbackId();
    if (callbackId == null)
      return;
    ClientCallback callback = _callbacks.get(callbackId);
    if (callback == null)
    {
      System.out.println("no callback found for "+callbackId);
      return;
    }
    callback.invoke(message);
    if (message.isDone())
    {
      _callbacks.remove(callbackId);
      //System.out.println("removed callback "+callbackId);
    }
View Full Code Here


      return;
    for (int i=0; i<args.length; i++)
    {
      if (args[i] instanceof Callback)
      {
        ClientCallback c = new ClientCallback((Callback)args[i]);
        _callbacks.put(c.getId(), c);
        args[i] = c;
      }
    }
     
  }
View Full Code Here

      {
        for (int i=0; i<args.length; i++)
        {
          if (args[i] instanceof ClientCallback)
          {
            ClientCallback cc = (ClientCallback) args[i];
            ClassLoader cl = cc.getClass().getClassLoader();
            Class clazz = cl.loadClass(cc.getCallbackClass());
            List<Class> clazzes = new ArrayList();
            while (clazz != null && (!clazz.equals(Object.class)))
            {
                clazzes.addAll(Arrays.asList(clazz.getInterfaces()));
                clazz = clazz.getSuperclass();
View Full Code Here

            {
              for (int i=0; i<args.length; i++)
              {
                if (args[i] instanceof ClientCallback)
                {
                  ClientCallback cc = (ClientCallback) args[i];
                  ClassLoader cl = cc.getClass().getClassLoader();
                  Class clazz = cl.loadClass(cc.getCallbackClass());
                  List<Class> clazzes = new ArrayList();
                  while (clazz != null && (!clazz.equals(Object.class)))
                  {
                      clazzes.addAll(Arrays.asList(clazz.getInterfaces()));
                      clazz = clazz.getSuperclass();
View Full Code Here

TOP

Related Classes of org.rzo.netty.ahessian.rpc.callback.ClientCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.