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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThriftSenderBase.ProtocolType
-
Field Summary
Fields Modifier and Type Field Description static int
EMIT_BATCH_OVERHEAD
protected org.apache.thrift.protocol.TProtocolFactory
protocolFactory
-
Constructor Summary
Constructors Constructor Description ThriftSenderBase(ThriftSenderBase.ProtocolType protocolType, int maxPacketSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getMaxSpanBytes()
int
getSize(org.apache.thrift.TBase<?,?> thriftBase)
protected byte[]
serialize(org.apache.thrift.TBase<?,?> thriftBase)
String
toString()
-
-
-
Field Detail
-
EMIT_BATCH_OVERHEAD
public static final int EMIT_BATCH_OVERHEAD
- See Also:
- Constant Field Values
-
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
-
-