Example #1
0
            public void enqueue_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                enqueue_args args = new enqueue_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                enqueue_result result = new enqueue_result();

                result.Success = iface_.enqueue(args.Topic, args.Req);
                oprot.WriteMessageBegin(new TMessage("enqueue", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Example #2
0
 public QueueResponse recv_enqueue()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   enqueue_result result = new enqueue_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "enqueue failed: unknown result");
 }
Example #3
0
            public QueueResponse recv_enqueue()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                enqueue_result result = new enqueue_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.success)
                {
                    return(result.Success);
                }
                throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "enqueue failed: unknown result");
            }
Example #4
0
 public void enqueue_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   enqueue_args args = new enqueue_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   enqueue_result result = new enqueue_result();
   result.Success = iface_.enqueue(args.Topic, args.Req);
   oprot.WriteMessageBegin(new TMessage("enqueue", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }