Class ThriftSenderBase

java.lang.Object
com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
Direct Known Subclasses:
ThriftSender

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

    • EMIT_BATCH_OVERHEAD

      public static final int EMIT_BATCH_OVERHEAD
      See Also:
    • protocolFactory

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

    • 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object