Class ThriftProtocolFactoryProvider
java.lang.Object
com.linecorp.armeria.common.thrift.ThriftProtocolFactoryProvider
SPI Provider for links from
SerializationFormat to TProtocolFactory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classPair ofSerializationFormatandTProtocolFactory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable TProtocolFactoryprotocolFactory(com.linecorp.armeria.common.SerializationFormat serializationFormat, int maxStringLength, int maxContainerLength) Returns theTProtocolFactoryfor the specifiedSerializationFormat,maxStringLengthandmaxContainerLength.protected abstract Set<com.linecorp.armeria.common.SerializationFormat> Returns the supported Thrift-relatedSerializationFormats.
-
Constructor Details
-
ThriftProtocolFactoryProvider
public ThriftProtocolFactoryProvider()
-
-
Method Details
-
serializationFormats
Returns the supported Thrift-relatedSerializationFormats. -
protocolFactory
@Nullable protected abstract @Nullable TProtocolFactory protocolFactory(com.linecorp.armeria.common.SerializationFormat serializationFormat, int maxStringLength, int maxContainerLength) Returns theTProtocolFactoryfor the specifiedSerializationFormat,maxStringLengthandmaxContainerLength. Returnsnullif theSerializationFormatis unsupported.- Parameters:
serializationFormat- the serialization format that theTProtocolFactorysupports.maxStringLength- the maximum allowed number of bytes to read from the transport for variable-length fields (such as strings or binary).0means unlimited.maxContainerLength- the maximum allowed number of containers to read from the transport for maps, sets and lists.0means unlimited.
-