Class/Object

com.twitter.finagle.Memcached

Client

Related Docs: object Client | package Memcached

Permalink

case class Client(stack: Stack[ServiceFactory[Command, Response]] = Client.newStack, params: Params = Client.defaultParams) extends StdStackClient[Command, Response, Client] with WithConcurrentLoadBalancer[Client] with MemcachedRichClient with Product with Serializable

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

Linear Supertypes
Serializable, Serializable, Product, Equals, MemcachedRichClient, WithConcurrentLoadBalancer[Client], StdStackClient[Command, Response, Client], WithSessionQualifier[Client], WithClientSession[Client], WithClientTransport[Client], WithClientAdmissionControl[Client], ClientParams[Client], CommonParams[Client], StackClient[Command, Response], StackBasedClient[Command, Response], Transformable[StackClient[Command, Response]], Parameterized[Client], finagle.Client[Command, Response], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MemcachedRichClient
  7. WithConcurrentLoadBalancer
  8. StdStackClient
  9. WithSessionQualifier
  10. WithClientSession
  11. WithClientTransport
  12. WithClientAdmissionControl
  13. ClientParams
  14. CommonParams
  15. StackClient
  16. StackBasedClient
  17. Transformable
  18. Parameterized
  19. Client
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(stack: Stack[ServiceFactory[Command, Response]] = Client.newStack, params: Params = Client.defaultParams)

    Permalink

Type Members

  1. type In = Buf

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  2. type Out = Buf

    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 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 → StdStackClient → StackClient → Parameterized
  7. def configured[P](p: P)(implicit arg0: Param[P]): Client

    Permalink
    Definition Classes
    StdStackClient → StackClient → Parameterized
  8. def copy1(stack: Stack[ServiceFactory[Command, Response]] = this.stack, params: Params = this.params): Client

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  9. def endpointer: Stackable[ServiceFactory[Command, Response]]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def newClient(dest: Name, label0: String): ServiceFactory[Command, Response]

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

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

    Permalink
    Definition Classes
    Client
  19. def newDispatcher(transport: Transport[In, Out]): Service[Command, Response]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  20. 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
  21. 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
  22. def newService(dest: Name, label: String): Service[Command, Response]

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

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

    Permalink
    Definition Classes
    Client
  25. def newTransporter(): Transporter[In, Out]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  26. 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
  27. 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
  28. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. val params: Params

    Permalink
    Definition Classes
    Client → StackClient → Parameterized
  31. val stack: Stack[ServiceFactory[Command, Response]]

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

    Permalink
    Definition Classes
    AnyRef
  33. def transformed(f: (Stack[ServiceFactory[Command, Response]]) ⇒ Stack[ServiceFactory[Command, Response]]): Client

    Permalink
    Definition Classes
    StdStackClient
  34. def transformed(t: Transformer): StackClient[Command, Response]

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

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

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

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

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

    Permalink

    Whether to eject cache host from the Ketama ring based on failure accrual.

    Whether to eject cache host from the Ketama ring based on failure accrual. By default, this is off. When turning on, keep the following caveat in mind: ejection is based on local failure accrual, so your cluster may get different views of the same cache host. With cache updates, this can introduce inconsistency in cache data. In many cases, it's better to eject cache host from a separate mechanism that's based on a global view.

  40. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client

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

    Permalink

    Defines the hash function to use for partitioned clients when mapping keys to partitions.

  42. def withLabel(label: String): Client

    Permalink
    Definition Classes
    Client → CommonParams
  43. val withLoadBalancer: ConcurrentLoadBalancingParams[Client]

    Permalink
    Definition Classes
    Client → WithConcurrentLoadBalancer
  44. def withMonitor(monitor: Monitor): Client

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

    Permalink

    Duplicate each node across the hash ring according to reps.

    Duplicate each node across the hash ring according to reps.

    See also

    com.twitter.hashing.KetamaDistributor for more details.

  46. def withParams(params: Params): Client

    Permalink
    Definition Classes
    StdStackClient → StackClient → Parameterized
  47. def withRequestTimeout(timeout: Duration): Client

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

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

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

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

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

    Permalink
    Definition Classes
    Client → WithSessionQualifier
  53. def withStack(stack: Stack[ServiceFactory[Command, Response]]): Client

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

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

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

    Permalink
    Definition Classes
    Client → WithClientTransport

Deprecated Value Members

  1. final def newClient(dest: Group[SocketAddress]): ServiceFactory[Command, Response]

    Permalink
    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

  2. final def newService(dest: Group[SocketAddress]): Service[Command, Response]

    Permalink
    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MemcachedRichClient

Inherited from WithConcurrentLoadBalancer[Client]

Inherited from StdStackClient[Command, Response, Client]

Inherited from WithSessionQualifier[Client]

Inherited from WithClientSession[Client]

Inherited from WithClientTransport[Client]

Inherited from WithClientAdmissionControl[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