com.twitter.finagle.Thrift

Client

case class Client(stack: Stack[ServiceFactory[ThriftClientRequest, Array[Byte]]] = Thrift.this.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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. type In = ThriftClientRequest

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

    Attributes
    protected
    Definition Classes
    Client → StdStackClient

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 clientId: Option[ClientId]

  8. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

  18. final def getClass(): Class[_]

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

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

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

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

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

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

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

    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
  26. def newIface[Iface](dest: Name, label: String)(implicit arg0: ClassTag[Iface]): Iface

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

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

    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 newIface[Iface](dest: String, label: String, cls: Class[_]): Iface

    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
  30. def newIface[Iface](dest: String, cls: Class[_]): Iface

    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
  31. def newMethodIface[ServiceIface, FutureIface](serviceIface: ServiceIface)(implicit builder: MethodIfaceBuilder[ServiceIface, FutureIface]): FutureIface

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

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

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

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

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

    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
  37. def newTransporter(): Transporter[In, Out]

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

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

    Definition Classes
    AnyRef
  40. val params: Params

    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
  41. val protocolFactory: TProtocolFactory

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

    Definition Classes
    Client → StackClient
  43. lazy val stats: StatsReceiver

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

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

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

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

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

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

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

    Definition Classes
    Client → WithClientAdmissionControl
  51. def withAttemptTTwitterUpgrade: Client

  52. def withClientId(clientId: ClientId): Client

  53. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client

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

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

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

    Definition Classes
    Client → CommonParams
  57. def withNoAttemptTTwitterUpgrade: Client

  58. def withParams(params: Params): Client

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

  60. def withRequestTimeout(timeout: Duration): Client

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Client → WithClientTransport

Deprecated Value Members

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

    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

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

    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

    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]]

    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

    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

    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