Users MUST provide an implementation to configure the provided ThriftRouter.
Users MUST provide an implementation to configure the provided ThriftRouter. The ThriftRouter
exposes a DSL which results in a configured Finagle Service[-Req, +Rep]
to serve on
the ListeningServer.
the ThriftRouter to configure.
The address to which the underlying ListeningServer is bound
The address to which the underlying ListeningServer is bound
this returns None before the postWarmup() lifecycle phase is done or if the server fails to start up.
This method allows for further configuration of the thrift server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,
This method allows for further configuration of the thrift server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,
override def configureThriftServer(server: ThriftMux.Server): ThriftMux.Server = { server .withMaxReusableBufferSize(...) }
- the com.twitter.finagle.ThriftMux.Server to configure.
a configured ThriftMux.Server.
Default server announcement String used as the Flag default value for thriftAnnounceFlag.
Default server announcement String used as the Flag default value for thriftAnnounceFlag. This can be overridden to provide a different default programmatically when a flag value cannot be passed. An empty String value is an indication to not perform any announcement of the server.
In general, users should prefer setting the thriftAnnounceFlag Flag value.
String)
Default external Thrift port used as the Flag default value for thriftPortFlag.
Default external Thrift port used as the Flag default value for thriftPortFlag. This can be overridden to provide a different default programmatically when a flag value cannot be passed. The format of this value is expected to be a String in the form of ":port".
In general, users should prefer setting the thriftPortFlag Flag value.
com.twitter.finatra.thrift.ThriftServerTrait.thriftPortFlag
Default server name for the external Thrift interface used as the Flag default value for thriftServerNameFlag.
Default server name for the external Thrift interface used as the Flag default value for thriftServerNameFlag. This can be overridden to provide a different default programmatically when a flag value cannot be passed.
In general, users should prefer setting the thriftServerNameFlag Flag value.
com.twitter.finatra.thrift.ThriftServerTrait.thriftServerNameFlag
Default shutdown timeout used as the Flag default value for thriftShutdownTimeoutFlag.
Default shutdown timeout used as the Flag default value for thriftShutdownTimeoutFlag. This represents the deadline for the closing of this server which can be overridden to provide a different default programmatically when a flag value cannot be passed.
In general, users should prefer setting the thriftShutdownTimeoutFlag Flag value.
the value is used to denote a delta "from now", that is this value is applied as:
server.close(shutdownTimeoutDuration.fromNow())
Time)
com.twitter.finatra.thrift.ThriftServerTrait.thriftShutdownTimeoutFlag
Default com.twitter.inject.TwitterModule for providing a ThriftResponseClassifier.
Default com.twitter.inject.TwitterModule for providing a ThriftResponseClassifier.
a com.twitter.inject.TwitterModule which provides a ThriftResponseClassifier implementation.
Configuration of the Service[Array[Byte], Array[Byte]]
to serve on the ListeningServer
is defined by configuring the ThriftRouter and not by implementation of this method,
thus this method overridden to be final and set to a NilService
.
Configuration of the Service[Array[Byte], Array[Byte]]
to serve on the ListeningServer
is defined by configuring the ThriftRouter and not by implementation of this method,
thus this method overridden to be final and set to a NilService
.
A Finagle server which exposes an external Thrift interface implemented by a
configured via a ThriftRouter. This trait is intended for use from Scala or with generated Scala code.
Service<byte[], byte[]> }}} intended for use from Scala or with generated Scala code.
Java users are encouraged to use AbstractThriftServer instead.