Class/Object

com.twitter.finagle.Memcached

Client

Related Docs: object Client | package Memcached

Permalink

case class Client(stack: Stack[ServiceFactory[Command, Response]] = Client.stack, params: Params = Client.params) extends PushStackClient[Command, Response, Client] with WithPartitioningStrategy[Client] with MemcachedRichClient with Product with Serializable

A memcached client with support for pipelined requests, consistent hashing, and per-node load-balancing.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MemcachedRichClient
  7. WithPartitioningStrategy
  8. PushStackClient
  9. EndpointerStackClient
  10. WithSessionQualifier
  11. WithClientSession
  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[Command, Response]] = Client.stack, params: Params = Client.params)

    Permalink

Type Members

  1. type In = Response

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient
  2. type Out = Command

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient
  3. type SessionT = PipeliningClientPushSession[Response, Command]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient

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 clone(): AnyRef

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

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

    Permalink
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  8. def configuredParams(newParams: Params): Client

    Permalink
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  9. def connectionsPerEndpoint(connections: Int): Client

    Permalink

    Configures the number of concurrent connections a single endpoint has.

    Configures the number of concurrent connections a single endpoint has. The connections are load balanced over which allows the pipelined client to avoid head-of-line blocking and reduce its latency.

    We've empirically found that two is a good default for this, but it can be increased at the cost of additional connection overhead.

  10. def copy1(stack: Stack[ServiceFactory[Command, Response]], params: Params): Client

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient → EndpointerStackClient
  11. final def endpointer: Stackable[ServiceFactory[Command, Response]]

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

    Permalink
    Definition Classes
    AnyRef
  13. def filtered(filter: Filter[Command, Response, Command, Response]): Client

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def injectors: Seq[ClientParamsInjector]

    Permalink
    Attributes
    protected
    Definition Classes
    EndpointerStackClient
  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, label0: String): ServiceFactory[Command, Response]

    Permalink
    Definition Classes
    EndpointerStackClient → Client
  20. final def newClient(dest: String, label: String): ServiceFactory[Command, Response]

    Permalink
    Definition Classes
    Client
  21. final def newClient(dest: String): ServiceFactory[Command, Response]

    Permalink
    Definition Classes
    Client
  22. def newPushTransporter(sa: SocketAddress): PushTransporter[Response, Command]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient
  23. def newRichClient(dest: String): memcached.Client

    Permalink

    Constructs a memcached.Client that dispatches requests over dest.

    Constructs a memcached.Client that dispatches requests over dest. When dest resolves to multiple hosts, the hosts are hashed across a ring with key affinity. The key hashing algorithm can be configured via the withKeyHasher method on Memcached.client. Failing hosts can be ejected from the hash ring if withEjectFailedHost is set to true. Note, the current implementation only supports bound Names.

    Definition Classes
    MemcachedRichClient
  24. def newRichClient(dest: Name, label: String): memcached.Client

    Permalink

    Constructs a memcached.Client that dispatches requests over dest.

    Constructs a memcached.Client that dispatches requests over dest. When dest resolves to multiple hosts, the hosts are hashed across a ring with key affinity. The key hashing algorithm can be configured via the withKeyHasher method on Memcached.client. Failing hosts can be ejected from the hash ring if withEjectFailedHost is set to true. Note, the current implementation only supports bound Names.

    Argument label is used to assign a label to this client. The label is used to scope stats, etc.

    Definition Classes
    MemcachedRichClient
  25. def newService(dest: Name, label: String): Service[Command, Response]

    Permalink
    Definition Classes
    EndpointerStackClient → Client
  26. final def newService(dest: String, label: String): Service[Command, Response]

    Permalink
    Definition Classes
    Client
  27. final def newService(dest: String): Service[Command, Response]

    Permalink
    Definition Classes
    Client
  28. def newSession(handle: PushChannelHandle[Response, Command]): Future[SessionT]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient
  29. def newTwemcacheClient(dest: Name, label: String): TwemcacheClient

    Permalink

    Constructs a memcached.Client that dispatches requests over dest.

    Constructs a memcached.Client that dispatches requests over dest. When dest resolves to multiple hosts, the hosts are hashed across a ring with key affinity. The key hashing algorithm can be configured via the withKeyHasher method on Memcached.client. Failing hosts can be ejected from the hash ring if withEjectFailedHost is set to true. Note, the current implementation only supports bound Names.

    Argument label is used to assign a label to this client. The label is used to scope stats, etc.

    Definition Classes
    ClientMemcachedRichClient
  30. def newTwemcacheClient(dest: String): TwemcacheClient

    Permalink

    Constructs a memcached.Client that dispatches requests over dest.

    Constructs a memcached.Client that dispatches requests over dest. When dest resolves to multiple hosts, the hosts are hashed across a ring with key affinity. The key hashing algorithm can be configured via the withKeyHasher method on Memcached.client. Failing hosts can be ejected from the hash ring if withEjectFailedHost is set to true. Note, the current implementation only supports bound Names.

    Definition Classes
    MemcachedRichClient
  31. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. val params: Params

    Permalink
    Definition Classes
    Client → StackClient → Parameterized
  34. final def registerTransporter(transporterName: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    StackClient
  35. val stack: Stack[ServiceFactory[Command, Response]]

    Permalink
    Definition Classes
    Client → StackClient
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toService(session: SessionT): Future[Service[Command, Response]]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → PushStackClient
  38. def transformed(t: Transformer): StackClient[Command, Response]

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

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

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

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

    Permalink
    Definition Classes
    Client → WithClientAdmissionControl
  43. def withEjectFailedHost(eject: Boolean): Client

    Permalink
    Definition Classes
    Client → WithPartitioningStrategy
  44. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client

    Permalink
    Definition Classes
    Client → CommonParams
  45. def withExecutionOffloaded(pool: FuturePool): Client

    Permalink
    Definition Classes
    Client → CommonParams
  46. def withExecutionOffloaded(executor: ExecutorService): Client

    Permalink
    Definition Classes
    Client → CommonParams
  47. def withKeyHasher(hasher: KeyHasher): Client

    Permalink
    Definition Classes
    Client → WithPartitioningStrategy
  48. def withLabel(label: String): Client

    Permalink
    Definition Classes
    Client → CommonParams
  49. def withLabels(keywords: String*): Client

    Permalink
    Definition Classes
    CommonParams
  50. def withMonitor(monitor: Monitor): Client

    Permalink
    Definition Classes
    Client → CommonParams
  51. def withNumReps(reps: Int): Client

    Permalink
    Definition Classes
    Client → WithPartitioningStrategy
  52. def withParams(params: Params): Client

    Permalink
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  53. def withRequestTimeout(timeout: Duration): Client

    Permalink
    Definition Classes
    Client → CommonParams
  54. def withRequestTimeout(timeout: Tunable[Duration]): Client

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

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

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

    Permalink
    Definition Classes
    Client → ClientParams
  58. val withSession: ClientSessionParams[Client]

    Permalink
    Definition Classes
    Client → WithClientSession
  59. val withSessionQualifier: SessionQualificationParams[Client]

    Permalink
    Definition Classes
    Client → WithSessionQualifier
  60. def withStack(fn: (Stack[ServiceFactory[Command, Response]]) ⇒ Stack[ServiceFactory[Command, Response]]): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient → StackClient
  61. def withStack(stack: Stack[ServiceFactory[Command, Response]]): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient → StackClient
  62. def withStatsReceiver(statsReceiver: StatsReceiver): Client

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

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

    Permalink
    Definition Classes
    Client → WithClientTransport

Deprecated Value Members

  1. def transformed(f: (Stack[ServiceFactory[Command, Response]]) ⇒ Stack[ServiceFactory[Command, Response]]): Client

    Permalink
    Definition Classes
    EndpointerStackClient
    Annotations
    @deprecated
    Deprecated

    (Since version 2018-10-30) Use withStack(Stack[ServiceFactory[Req, Rep]] => Stack[ServiceFactory[Req, Rep]]) instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MemcachedRichClient

Inherited from WithSessionQualifier[Client]

Inherited from WithClientSession[Client]

Inherited from WithClientTransport[Client]

Inherited from ClientParams[Client]

Inherited from CommonParams[Client]

Inherited from StackClient[Command, Response]

Inherited from StackBasedClient[Command, Response]

Inherited from Transformable[StackClient[Command, Response]]

Inherited from Parameterized[Client]

Inherited from finagle.Client[Command, Response]

Inherited from AnyRef

Inherited from Any

Ungrouped