Package org.rzo.netty.ahessian.rpc.message

Examples of org.rzo.netty.ahessian.rpc.message.HessianRPCCallMessage


    final Long id = new Long(_id);
    _id++;
    headers.put(CALL_ID_HEADER_KEY, id);
    final HessianProxyFuture future = new HessianProxyFuture();
    future.handleCallbacks(args);
    final HessianRPCCallMessage message = new HessianRPCCallMessage(methodName, args, headers, null);
    _openCalls.put(id, future);
    Integer g = (Integer) options.get("group");
    final Integer group = g == null ? 0 : g;
    long timeout = _pendingCalls.getTimeout(group);
    if (timeout > 0)
View Full Code Here


    _lock.lock();
    _connected.signal();
    _lock.unlock();
    // put something in the queue in case the worker thread hangs in
    // _pendingCalls.take()
    _pendingCalls.offer(new HessianRPCCallMessage(null, null, null, null));
    super.channelDisconnected(ctx, e);
    if (_disconnectedListener != null)
      try
      {
        _disconnectedListener.run();
View Full Code Here

      _lock.lock();
      _connected.signal();
      _lock.unlock();
      // put something in the queue in case the worker thread hangs in
      // _pendingCalls.take()
      _pendingCalls.offer(new HessianRPCCallMessage(null, null, null, null));
    }
  }
View Full Code Here

    _executor = executor;
    _executor.execute(new Runnable()
    {
      public void run()
      {
        HessianRPCCallMessage message;
        while (!_stop)
        {
          message = null;
          try
          {
View Full Code Here

    _executor.execute(new Runnable()
    {
      public void run()
      {
        Thread.currentThread().setName("HessianRPCServiceHandler-Call-Rx");
        HessianRPCCallMessage message = null;
        while (!_stop)
          try
          {
            message = _pendingCalls.take();
            HessianSkeleton service = getService(message);
View Full Code Here

   * org.jboss.netty.channel.MessageEvent)
   */
  @Override
  public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
  {
    HessianRPCCallMessage message = (HessianRPCCallMessage) e.getMessage();
    Integer group = (Integer) message.getHeaders().get(Constants.GROUP_HEADER_KEY);
    _pendingCalls.put(message, group);

  }
View Full Code Here

TOP

Related Classes of org.rzo.netty.ahessian.rpc.message.HessianRPCCallMessage

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.