public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Evt = new ThriftFlumeEvent(); Evt.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void append(ThriftFlumeEvent evt) { lock (obj) { _events.Add(evt); } }
public void send_append(ThriftFlumeEvent evt) { oprot_.WriteMessageBegin(new TMessage("append", TMessageType.Call, seqid_)); append_args args = new append_args(); args.Evt = evt; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void append(ThriftFlumeEvent evt) { send_append(evt); }