Class TProtocolDecorator

java.lang.Object
org.apache.thrift.protocol.TProtocol
org.apache.thrift.protocol.TProtocolDecorator
All Implemented Interfaces:
TReadProtocol, TWriteProtocol
Direct Known Subclasses:
TMultiplexedProtocol

public abstract class TProtocolDecorator extends TProtocol
TProtocolDecorator forwards all requests to an enclosed TProtocol instance, providing a way to author concise concrete decorator subclasses. While it has no abstract methods, it is marked abstract as a reminder that by itself, it does not modify the behaviour of the enclosed TProtocol.

See p.175 of Design Patterns (by Gamma et al.)

See Also: