Exemplo n.º 1
0
 public void atomic_batch_mutate_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   atomic_batch_mutate_args args = new atomic_batch_mutate_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   atomic_batch_mutate_result result = new atomic_batch_mutate_result();
   try {
     iface_.atomic_batch_mutate(args.Mutation_map, args.Consistency_level);
   } catch (InvalidRequestException ire) {
     result.Ire = ire;
   } catch (UnavailableException ue) {
     result.Ue = ue;
   } catch (TimedOutException te) {
     result.Te = te;
   }
   oprot.WriteMessageBegin(new TMessage("atomic_batch_mutate", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public void recv_atomic_batch_mutate()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   atomic_batch_mutate_result result = new atomic_batch_mutate_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.ire) {
     throw result.Ire;
   }
   if (result.__isset.ue) {
     throw result.Ue;
   }
   if (result.__isset.te) {
     throw result.Te;
   }
   return;
 }