Class TLegacyUuidProtocolDecorator

All Implemented Interfaces:
TReadProtocol, TWriteProtocol

public class TLegacyUuidProtocolDecorator extends TProtocolDecorator
The TLegacyUuidProtocolDecorator that decorates an existing TProtocol to provide backwards compatibility with the old UUID format that the Java library used on the wire.

The initial UUID implementation in Java was not according to the protocol specification. This was fixed in THRIFT-5925 and as a result would break backwards compatibility with existing implementations that depends on that format.

This decorator is especially useful where migration is not needed and interop between other languages, that follows the specification, are not needed.

For usage see the TestTLegacyUuidProtocolDecorator tests.