com.twitter.finagle.Memcached

Client

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

Linear Supertypes
Serializable, Serializable, Product, Equals, MemcachedRichClient, StdStackClient[Command, Response, Client], StackClient[Command, Response], StackBasedClient[Command, Response], Transformable[StackClient[Command, Response]], Parameterized[StackClient[Command, Response]], 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. StdStackClient
  8. StackClient
  9. StackBasedClient
  10. Transformable
  11. Parameterized
  12. Client
  13. AnyRef
  14. 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[Command, Response]] = Memcached.this.Client.newStack, params: Params = Memcached.this.Client.defaultParams)

Type Members

  1. type In = Command

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

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

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

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

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

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

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

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

    Definition Classes
    StdStackClient
  14. def finalize(): Unit

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  22. def newRichClient(dest: String): memcached.Client

    Constructs a memcached.

    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
  23. def newRichClient(dest: Name, label: String): memcached.Client

    Constructs a memcached.

    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
  24. def newService(dest: Name, label: String): Service[Command, Response]

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

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

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

    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  28. def newTwemcacheClient(dest: Name, label: String): KetamaPartitionedClient with TwemcachePartitionedClient

    Constructs a memcached.

    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
  29. def newTwemcacheClient(dest: String): TwemcacheClient

    Constructs a memcached.

    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
  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. val params: Params

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def withEjectFailedHost(eject: Boolean): Client

    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.

  41. def withKeyHasher(hasher: KeyHasher): Client

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

  42. def withNumReps(reps: Int): Client

    Duplicate each node across the hash ring according to reps.

    Duplicate each node across the hash ring according to reps.

    See also

    com.twitter.finagle.memcached.KetamaDistributor for more details.

  43. def withParams(params: Params): Client

    Definition Classes
    StdStackClient → StackClient → Parameterized
  44. def withStack(stack: Stack[ServiceFactory[Command, Response]]): Client

    Definition Classes
    StdStackClient → StackClient

Deprecated Value Members

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

    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

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

    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 StdStackClient[Command, Response, Client]

Inherited from StackClient[Command, Response]

Inherited from StackBasedClient[Command, Response]

Inherited from Transformable[StackClient[Command, Response]]

Inherited from Parameterized[StackClient[Command, Response]]

Inherited from finagle.Client[Command, Response]

Inherited from AnyRef

Inherited from Any

Ungrouped