Class/Object

com.twitter.finagle.Thrift

Client

Related Docs: object Client | package Thrift

Permalink

case class Client(stack: Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]] = Client.stack, params: Params = ...) extends StdStackClient[ThriftClientRequest, Array[Byte], Client] with WithSessionPool[Client] with WithDefaultLoadBalancer[Client] with ThriftRichClient with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, ThriftRichClient, WithDefaultLoadBalancer[Client], WithSessionPool[Client], StdStackClient[ThriftClientRequest, Array[Byte], Client], WithSessionQualifier[Client], WithSession[Client], WithClientTransport[Client], WithClientAdmissionControl[Client], ClientParams[Client], CommonParams[Client], StackClient[ThriftClientRequest, Array[Byte]], StackBasedClient[ThriftClientRequest, Array[Byte]], Transformable[StackClient[ThriftClientRequest, Array[Byte]]], Parameterized[Client], finagle.Client[ThriftClientRequest, Array[Byte]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Client
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ThriftRichClient
  7. WithDefaultLoadBalancer
  8. WithSessionPool
  9. StdStackClient
  10. WithSessionQualifier
  11. WithSession
  12. WithClientTransport
  13. WithClientAdmissionControl
  14. ClientParams
  15. CommonParams
  16. StackClient
  17. StackBasedClient
  18. Transformable
  19. Parameterized
  20. Client
  21. AnyRef
  22. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(stack: Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]] = Client.stack, params: Params = ...)

    Permalink

Type Members

  1. type In = ThriftClientRequest

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  2. type Out = Array[Byte]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clientId: Option[ClientId]

    Permalink
  6. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Client → StdStackClient → StackClient → Parameterized
  8. def configured[P](p: P)(implicit arg0: Param[P]): Client

    Permalink
    Definition Classes
    StdStackClient → StackClient → Parameterized
  9. def copy1(stack: Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]] = this.stack, params: Params = this.params): Client

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  10. lazy val defaultClientName: String

    Permalink

    The client name used when group isn't named.

    The client name used when group isn't named.

    Attributes
    protected
    Definition Classes
    ClientThriftRichClient
  11. def endpointer: Stackable[ServiceFactory[ThriftClientRequest, Array[Byte]]]

    Permalink
    Attributes
    protected
    Definition Classes
    StdStackClient
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def filtered(filter: Filter[ThriftClientRequest, Array[Byte], ThriftClientRequest, Array[Byte]]): Client

    Permalink
    Definition Classes
    Client → StdStackClient
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val framed: Boolean

    Permalink
  16. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def newClient(dest: Name, label: String): ServiceFactory[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client → StdStackClient → Client
  20. final def newClient(dest: String, label: String): ServiceFactory[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client
  21. final def newClient(dest: String): ServiceFactory[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client
  22. def newDispatcher(transport: Transport[ThriftClientRequest, Array[Byte]]): Service[ThriftClientRequest, Array[Byte]]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  23. def newIface[Iface](name: Name, label: String, cls: Class[_]): Iface

    Permalink

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Definition Classes
    ThriftRichClient
  24. def newIface[Iface](dest: Name, label: String)(implicit arg0: ClassTag[Iface]): Iface

    Permalink
    Definition Classes
    ThriftRichClient
  25. def newIface[Iface](dest: String, label: String)(implicit arg0: ClassTag[Iface]): Iface

    Permalink
    Definition Classes
    ThriftRichClient
  26. def newIface[Iface](dest: String)(implicit arg0: ClassTag[Iface]): Iface

    Permalink

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Definition Classes
    ThriftRichClient
  27. def newIface[Iface](dest: String, label: String, cls: Class[_]): Iface

    Permalink

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Definition Classes
    ThriftRichClient
  28. def newIface[Iface](dest: String, cls: Class[_]): Iface

    Permalink

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Definition Classes
    ThriftRichClient
  29. def newMethodIface[ServiceIface, FutureIface](serviceIface: ServiceIface)(implicit builder: MethodIfaceBuilder[ServiceIface, FutureIface]): FutureIface

    Permalink
    Definition Classes
    ThriftRichClient
  30. def newService(dest: Name, label: String): Service[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    StdStackClient → Client
  31. final def newService(dest: String, label: String): Service[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client
  32. final def newService(dest: String): Service[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client
  33. def newServiceIface[ServiceIface](dest: Name, label: String)(implicit builder: ServiceIfaceBuilder[ServiceIface]): ServiceIface

    Permalink
    Definition Classes
    ThriftRichClient
  34. def newServiceIface[ServiceIface](dest: String, label: String)(implicit builder: ServiceIfaceBuilder[ServiceIface]): ServiceIface

    Permalink

    Construct a Finagle Service interface for a Scrooge-generated thrift object.

    Construct a Finagle Service interface for a Scrooge-generated thrift object.

    E.g. given a thrift service

    service Logger {
      string log(1: string message, 2: i32 logLevel);
      i32 getLogSize();
    }

    you can construct a client interface with a Finagle Service per thrift method:

    val loggerService = Thrift.newServiceIface[Logger.ServiceIface]("localhost:8000")
    val response = loggerService.log(Logger.Log.Args("log message", 1))
    dest

    Address of the service to connect to, in the format accepted by Resolver.eval.

    label

    Assign a label for scoped stats.

    builder

    The builder type is generated by Scrooge for a thrift service.

    Definition Classes
    ThriftRichClient
  35. def newTransporter(): Transporter[In, Out]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. val params: Params

    Permalink

    The Stack.Params to be used by this client.

    The Stack.Params to be used by this client.

    Both defaultClientName and stats predate Params and as such are implemented separately.

    Definition Classes
    ClientThriftRichClient → StackClient → Parameterized
  39. val protocolFactory: TProtocolFactory

    Permalink
    Attributes
    protected
    Definition Classes
    ClientThriftRichClient
  40. val stack: Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]]

    Permalink
    Definition Classes
    Client → StackClient
  41. lazy val stats: StatsReceiver

    Permalink
    Attributes
    protected
    Definition Classes
    ClientThriftRichClient
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def transformed(f: (Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]]) ⇒ Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]]): Client

    Permalink
    Definition Classes
    StdStackClient
  44. def transformed(t: Transformer): StackClient[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    StackClient → Transformable
  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. val withAdmissionControl: ClientAdmissionControlParams[Client]

    Permalink
    Definition Classes
    Client → WithClientAdmissionControl
  49. def withAttemptTTwitterUpgrade: Client

    Permalink
  50. def withClientId(clientId: ClientId): Client

    Permalink
  51. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client

    Permalink
    Definition Classes
    Client → CommonParams
  52. def withLabel(label: String): Client

    Permalink
    Definition Classes
    Client → CommonParams
  53. val withLoadBalancer: DefaultLoadBalancingParams[Client]

    Permalink
    Definition Classes
    Client → WithDefaultLoadBalancer
  54. def withMonitor(monitor: Monitor): Client

    Permalink
    Definition Classes
    Client → CommonParams
  55. def withNoAttemptTTwitterUpgrade: Client

    Permalink
  56. def withParams(params: Params): Client

    Permalink
    Definition Classes
    StdStackClient → StackClient → Parameterized
  57. def withProtocolFactory(protocolFactory: TProtocolFactory): Client

    Permalink
  58. def withRequestTimeout(timeout: Duration): Client

    Permalink
    Definition Classes
    Client → CommonParams
  59. def withResponseClassifier(responseClassifier: ResponseClassifier): Client

    Permalink
    Definition Classes
    Client → CommonParams
  60. def withRetryBackoff(backoff: Stream[Duration]): Client

    Permalink
    Definition Classes
    Client → ClientParams
  61. def withRetryBudget(budget: RetryBudget): Client

    Permalink
    Definition Classes
    Client → ClientParams
  62. val withSession: SessionParams[Client]

    Permalink
    Definition Classes
    Client → WithSession
  63. val withSessionPool: SessionPoolingParams[Client]

    Permalink
    Definition Classes
    Client → WithSessionPool
  64. val withSessionQualifier: SessionQualificationParams[Client]

    Permalink
    Definition Classes
    Client → WithSessionQualifier
  65. def withStack(stack: Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]]): Client

    Permalink
    Definition Classes
    StdStackClient → StackClient
  66. def withStatsReceiver(statsReceiver: StatsReceiver): Client

    Permalink
    Definition Classes
    Client → CommonParams
  67. def withTracer(tracer: Tracer): Client

    Permalink
    Definition Classes
    Client → CommonParams
  68. val withTransport: ClientTransportParams[Client]

    Permalink
    Definition Classes
    Client → WithClientTransport

Deprecated Value Members

  1. final def newClient(dest: Group[SocketAddress]): ServiceFactory[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

  2. def newIface[Iface](group: Group[SocketAddress], cls: Class[_]): Iface

    Permalink

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Definition Classes
    ThriftRichClient
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names via newIface(String) or newIface(Name)

  3. def newIface[Iface](group: Group[SocketAddress])(implicit arg0: ClassTag[Iface]): Iface

    Permalink

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Create a new client of type Iface, which must be generated by either Scrooge or thrift-finagle.

    Definition Classes
    ThriftRichClient
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names via newIface(String) or newIface(Name)

  4. final def newService(dest: Group[SocketAddress]): Service[ThriftClientRequest, Array[Byte]]

    Permalink
    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

  5. def newServiceIface[ServiceIface](dest: Name)(implicit builder: ServiceIfaceBuilder[ServiceIface]): ServiceIface

    Permalink
    Definition Classes
    ThriftRichClient
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-10-26) Must provide service label

  6. def newServiceIface[ServiceIface](dest: String)(implicit builder: ServiceIfaceBuilder[ServiceIface]): ServiceIface

    Permalink
    Definition Classes
    ThriftRichClient
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-10-26) Must provide service label

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ThriftRichClient

Inherited from WithDefaultLoadBalancer[Client]

Inherited from WithSessionPool[Client]

Inherited from StdStackClient[ThriftClientRequest, Array[Byte], Client]

Inherited from WithSessionQualifier[Client]

Inherited from WithSession[Client]

Inherited from WithClientTransport[Client]

Inherited from WithClientAdmissionControl[Client]

Inherited from ClientParams[Client]

Inherited from CommonParams[Client]

Inherited from StackClient[ThriftClientRequest, Array[Byte]]

Inherited from StackBasedClient[ThriftClientRequest, Array[Byte]]

Inherited from Transformable[StackClient[ThriftClientRequest, Array[Byte]]]

Inherited from Parameterized[Client]

Inherited from finagle.Client[ThriftClientRequest, Array[Byte]]

Inherited from AnyRef

Inherited from Any

Ungrouped