Class ThriftSenderBase

  • Direct Known Subclasses:
    ThriftSender

    public abstract class ThriftSenderBase
    extends Object
    Modified from original for compatibility with libthrift 0.14.0
    • Field Detail

      • protocolFactory

        protected final org.apache.thrift.protocol.TProtocolFactory protocolFactory
    • Constructor Detail

      • ThriftSenderBase

        public ThriftSenderBase​(ThriftSenderBase.ProtocolType protocolType,
                                int maxPacketSize)
        Parameters:
        protocolType - protocol type (compact or binary)
        maxPacketSize - if 0 it will use default value 65000
    • Method Detail

      • getMaxSpanBytes

        protected int getMaxSpanBytes()
      • serialize

        protected byte[] serialize​(org.apache.thrift.TBase<?,​?> thriftBase)
                            throws Exception
        Throws:
        Exception
      • getSize

        public int getSize​(org.apache.thrift.TBase<?,​?> thriftBase)
                    throws Exception
        Throws:
        Exception