concept layer transport in category apache thrift

appears as: layered trsports
Programmer's Guide to Apache Thrift

This is an excerpt from Manning's book Programmer's Guide to Apache Thrift.

Layered transport factories produce layered transports on top of an existing transport. Servers pass endpoint transports to a transport factory method to acquire a fully layered transport stack. The transport factory method can return the original endpoint transport passed in (adding no layers), or it may return a stack with one or more layers added to the endpoint. Transport factories have the same name as the layered transport they produce with the “Factory” suffix. All transport factories are derived from TTransportFactory and offer the getTransport() factory method. The generic library TTransportFactory.getTransport() method returns the transport passed unaltered. The most common layered transport factories include

Table 11.2. C++ layered transports (view table figure)

Layer

Type

Factory

Base

TBufferedTransport NonM TBufferedTransportFactory TVirtualTransport<TBufferedTransport, TBufferBase>
TFramedTransport Mut TFramedTransportFactory TVirtualTransport<TFramed Transport, TBufferBase>
THttpServer Mut THttpServerTransportFactory THttpTransport
TZlibTransport Mut TZlibTransportFactory TVirtualTransport<TZlibTransport>