TServer

Base class for all Thrift servers.

By setting the eventHandler property to a TServerEventHandler implementation, custom code can be integrated into the processing pipeline, which can be used e.g. for gathering statistics.

Constructors

this
this(TProcessor processor, TServerTransport serverTransport, TTransportFactory transportFactory, TProtocolFactory protocolFactory)
Undocumented in source.
this
this(TProcessorFactory processorFactory, TServerTransport serverTransport, TTransportFactory transportFactory, TProtocolFactory protocolFactory)
Undocumented in source.
this
this(TProcessor processor, TServerTransport serverTransport, TTransportFactory inputTransportFactory, TTransportFactory outputTransportFactory, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory)
Undocumented in source.
this
this(TProcessorFactory processorFactory, TServerTransport serverTransport, TTransportFactory inputTransportFactory, TTransportFactory outputTransportFactory, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory)
Undocumented in source.

Members

Functions

serve
void serve(TCancellation cancellation)

Starts serving.

Properties

inputProtocolFactory
TProtocolFactory inputProtocolFactory [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
inputTransportFactory
TTransportFactory inputTransportFactory [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
outputProtocolFactory
TProtocolFactory outputProtocolFactory [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
outputTransportFactory
TTransportFactory outputTransportFactory [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
processorFactory
TProcessorFactory processorFactory [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
serverTransport
TServerTransport serverTransport [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

eventHandler
TServerEventHandler eventHandler;

The server event handler to notify. Null by default.

inputProtocolFactory_
TProtocolFactory inputProtocolFactory_;
Undocumented in source.
inputTransportFactory_
TTransportFactory inputTransportFactory_;
Undocumented in source.
outputProtocolFactory_
TProtocolFactory outputProtocolFactory_;
Undocumented in source.
outputTransportFactory_
TTransportFactory outputTransportFactory_;
Undocumented in source.
processorFactory_
TProcessorFactory processorFactory_;
Undocumented in source.
serverTransport_
TServerTransport serverTransport_;
Undocumented in source.

Meta