com.twitter.finagle.server

StdStackServer

trait StdStackServer[Req, Rep, This <: StdStackServer[Req, Rep, This]] extends StackServer[Req, Rep] with Parameterized[This] with CommonParams[This] with WithServerTransport[This] with WithServerAdmissionControl[This]

A standard template implementation for com.twitter.finagle.server.StackServer.

Self Type
StdStackServer[Req, Rep, This]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StdStackServer
  2. WithServerAdmissionControl
  3. WithServerTransport
  4. CommonParams
  5. StackServer
  6. StackBasedServer
  7. Parameterized
  8. Server
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type In

    The type we write into the transport.

    The type we write into the transport.

    Attributes
    protected
  2. abstract type Out

    The type we read out of the transport.

    The type we read out of the transport.

    Attributes
    protected

Abstract Value Members

  1. abstract def copy1(stack: Stack[ServiceFactory[Req, Rep]] = this.stack, params: Params = this.params): This { ... /* 2 definitions in type refinement */ }

    A copy constructor in lieu of defining StackServer as a case class.

    A copy constructor in lieu of defining StackServer as a case class.

    Attributes
    protected
  2. abstract def newDispatcher(transport: Transport[In, Out], service: Service[Req, Rep]): Closable

    Defines a dispatcher, a function which binds a transport to a com.twitter.finagle.Service.

    Defines a dispatcher, a function which binds a transport to a com.twitter.finagle.Service. Together with a Listener, it forms the foundation of a finagle server. Concrete implementations are expected to specify this.

    Attributes
    protected
    See also

    com.twitter.finagle.dispatch.GenSerialServerDispatcher

  3. abstract def newListener(): Listener[In, Out]

    Defines a typed com.twitter.finagle.server.Listener for this server.

    Defines a typed com.twitter.finagle.server.Listener for this server. Concrete StackServer implementations are expected to specify this.

    Attributes
    protected
  4. abstract def params: Params

    The current parameter map used in this StackServer

    The current parameter map used in this StackServer

    Definition Classes
    StackServerParameterized
  5. abstract def stack: Stack[ServiceFactory[Req, Rep]]

    The current stack used in this StackServer.

    The current stack used in this StackServer.

    Definition Classes
    StackServer

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def configured[P](psp: (P, Param[P])): This

    Creates a new StackServer with parameter psp._1 and Stack Param type psp._2.

    Creates a new StackServer with parameter psp._1 and Stack Param type psp._2.

    Definition Classes
    StdStackServerStackServerParameterized
  9. def configured[P](p: P)(implicit arg0: Param[P]): This

    Creates a new StackServer with parameter p.

    Creates a new StackServer with parameter p.

    Definition Classes
    StdStackServerStackServerParameterized
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def serve(addr: SocketAddress, factory: ServiceFactory[Req, Rep]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    StdStackServerServer
  20. def serve(addr: String, service: Service[Req, Rep]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    Server
  21. def serve(addr: String, service: ServiceFactory[Req, Rep]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    Server
  22. def serve(addr: SocketAddress, service: Service[Req, Rep]): ListeningServer

    Serve service at addr

    Serve service at addr

    Definition Classes
    Server
  23. def serveAndAnnounce(name: String, service: Service[Req, Rep]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  24. def serveAndAnnounce(name: String, service: ServiceFactory[Req, Rep]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  25. def serveAndAnnounce(name: String, addr: String, service: Service[Req, Rep]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  26. def serveAndAnnounce(name: String, addr: String, service: ServiceFactory[Req, Rep]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  27. def serveAndAnnounce(name: String, addr: SocketAddress, service: Service[Req, Rep]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  28. def serveAndAnnounce(name: String, addr: SocketAddress, service: ServiceFactory[Req, Rep]): ListeningServer

    Serve service at addr and announce with name.

    Serve service at addr and announce with name. Announcements will be removed when the service is closed. Omitting the addr will bind to an ephemeral port.

    Definition Classes
    Server
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. val withAdmissionControl: ServerAdmissionControlParams[This]

    An entry point for configuring the servers' admission control.

    An entry point for configuring the servers' admission control.

    Definition Classes
    WithServerAdmissionControl
  35. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): This

    Configures this server or client with given exception stats handler.

    Configures this server or client with given exception stats handler.

    Definition Classes
    CommonParams
  36. def withLabel(label: String): This

    Configures this server or client with given label (default: empty string).

    Configures this server or client with given label (default: empty string).

    The label value is used for stats reporting to scope stats reported from different clients/servers to a single stats receiver.

    Definition Classes
    CommonParams
  37. def withMonitor(monitor: Monitor): This

    Configures this server or client with given util.Monitor (default: com.twitter.finagle.util.DefaultMonitor).

    Configures this server or client with given util.Monitor (default: com.twitter.finagle.util.DefaultMonitor).

    Definition Classes
    CommonParams
  38. def withParams(params: Params): This

    Creates a new StackServer with params used to configure this StackServer's stack.

    Creates a new StackServer with params used to configure this StackServer's stack.

    Definition Classes
    StdStackServerStackServerParameterized
  39. def withRequestTimeout(timeout: Duration): This

    Configures the request timeout of this server or client (default: unbounded).

    Configures the request timeout of this server or client (default: unbounded).

    Client's Request Timeout

    The client request timeout is the maximum amount of time given to a single request (if there are retries, they each get a fresh request timeout). The timeout is applied only after a connection has been acquired. That is: it is applied to the interval between the dispatch of the request and the receipt of the response.

    Server's Request Timeout

    The server request timeout is the maximum amount of time, a server is allowed to spend handling the incoming request. Using the Finagle terminology, this is an amount of time after which a non-satisfied future returned from the user-defined service times out.

    Definition Classes
    CommonParams
    See also

    http://twitter.github.io/finagle/guide/Clients.html#timeouts-expiration

  40. def withStack(stack: Stack[ServiceFactory[Req, Rep]]): This

    A new StackServer with the provided Stack.

    A new StackServer with the provided Stack.

    Definition Classes
    StdStackServerStackServer
  41. def withStatsReceiver(statsReceiver: StatsReceiver): This

    Configures this server or client with given stats.StatsReceiver (default: stats.DefaultStatsReceiver).

    Configures this server or client with given stats.StatsReceiver (default: stats.DefaultStatsReceiver).

    Definition Classes
    CommonParams
  42. def withTracer(tracer: Tracer): This

    Configures this server or client with given tracing.Tracer (default: com.twitter.finagle.tracing.DefaultTracer).

    Configures this server or client with given tracing.Tracer (default: com.twitter.finagle.tracing.DefaultTracer).

    Definition Classes
    CommonParams
  43. val withTransport: ServerTransportParams[This]

    An entry point for configuring servers' com.twitter.finagle.transport.Transport.

    An entry point for configuring servers' com.twitter.finagle.transport.Transport.

    Transport is a Finagle abstraction over the network connection (i.e., a TCP connection).

    Definition Classes
    WithServerTransport

Inherited from WithServerAdmissionControl[This]

Inherited from WithServerTransport[This]

Inherited from CommonParams[This]

Inherited from StackServer[Req, Rep]

Inherited from StackBasedServer[Req, Rep]

Inherited from Parameterized[This]

Inherited from Server[Req, Rep]

Inherited from AnyRef

Inherited from Any

Ungrouped