The Finagle Service[Array[Byte], Array[Byte]]
to serve on the configured ListeningServer.
The Finagle Service[Array[Byte], Array[Byte]]
to serve on the configured ListeningServer.
Users must override with an implementation to serve a Service[Array[Byte], Array[Byte]]
.
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.
A basic ThriftServer implemented by a
.
com.twitter.finagle.Service[Array[Byte], Array[Byte]] }}}
Java users are encouraged to use AbstractThriftServerTrait instead.