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 classThriftSenderBase.ProtocolType 
- 
Field Summary
Fields Modifier and Type Field Description static intEMIT_BATCH_OVERHEADprotected org.apache.thrift.protocol.TProtocolFactoryprotocolFactory 
- 
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 intgetMaxSpanBytes()intgetSize(org.apache.thrift.TBase<?,?> thriftBase)protected byte[]serialize(org.apache.thrift.TBase<?,?> thriftBase)StringtoString() 
 - 
 
- 
- 
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
 
 - 
 
 -