com.twitter.finagle.memcached.replication

BaseReplicationClient

class BaseReplicationClient extends AnyRef

Base replication client. This client manages a list of base memcached clients representing cache replicas. All replication API returns ReplicationStatus object indicating the underlying replicas consistency state.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BaseReplicationClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseReplicationClient(clients: Seq[Client], statsReceiver: StatsReceiver = ...)

    clients

    list of memcached clients with each one representing to a single cache pool

    statsReceiver

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. def add(key: String, flags: Int, expiry: Time, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

  7. def add(key: String, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

    Store a key in all replicas but only if it doesn't already exist on the server, and returns the aggregated replication status.

  8. def append(key: String, flags: Int, expiry: Time, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

  9. def append(key: String, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

    Unsupported operation yet

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def cas(key: String, flags: Int, expiry: Time, value: ChannelBuffer, casUniques: Seq[ChannelBuffer]): Future[ReplicationStatus[Boolean]]

  12. def cas(key: String, value: ChannelBuffer, casUniques: Seq[ChannelBuffer]): Future[ReplicationStatus[Boolean]]

    Attempts to perform a CAS operation on all replicas, and returns the aggregated replication status.

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def decr(key: String, delta: Long): Future[ReplicationStatus[Option[Long]]]

  15. def decr(key: String): Future[ReplicationStatus[Option[Long]]]

    Decrement a key and returns the aggregated replication status.

  16. def delete(key: String): Future[ReplicationStatus[Boolean]]

    Remove a key and returns the aggregated replication status.

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def getAll(keys: Iterable[String]): Future[Map[String, ReplicationStatus[Option[ChannelBuffer]]]]

  21. def getAll(key: String): Future[ReplicationStatus[Option[ChannelBuffer]]]

    Get replication status for the input keys from the underlying replicas.

    Get replication status for the input keys from the underlying replicas. For each input key, this operation returns the aggregated replication status after requesting all replicas.

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

    Definition Classes
    AnyRef → Any
  23. def getOne(keys: Iterable[String], useRandomOrder: Boolean): Future[Map[String, ChannelBuffer]]

  24. def getOne(key: String, useRandomOrder: Boolean = false): Future[Option[ChannelBuffer]]

    Get one value for the input keys from the underlying replicas.

    Get one value for the input keys from the underlying replicas. For each input key, this operation searches all replicas in an order until it finds the first hit result, or return the last replica's result.

  25. def getsAll(keys: Iterable[String]): Future[Map[String, ReplicationStatus[Option[(ChannelBuffer, ReplicaCasUnique)]]]]

  26. def getsAll(key: String): Future[ReplicationStatus[Option[(ChannelBuffer, ReplicaCasUnique)]]]

    Get replication status for the input keys and their checksum.

    Get replication status for the input keys and their checksum. The aggregated results returned can be either of these three cases: - ConsistentReplication, indicating consistent value across all replicas, which comes with an aggregated cas unique to be used for CAS;

    - InconsistentReplication, indicating inconsistent values across all replicas, which comes with each replica's own cas unique id;

    - FailedReplication, indicating failures from all replicas;

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def incr(key: String, delta: Long): Future[ReplicationStatus[Option[Long]]]

  29. def incr(key: String): Future[ReplicationStatus[Option[Long]]]

    Increment a key and returns the aggregated replication status.

  30. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  32. final def notify(): Unit

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

    Definition Classes
    AnyRef
  34. def prepend(key: String, flags: Int, expiry: Time, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

  35. def prepend(key: String, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

    Unsupported operation yet

  36. def release(): Unit

  37. def replace(key: String, flags: Int, expiry: Time, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

  38. def replace(key: String, value: ChannelBuffer): Future[ReplicationStatus[Boolean]]

    Replace existing key in all replicas, and returns the aggregated replication status.

  39. def set(key: String, flags: Int, expiry: Time, value: ChannelBuffer): Future[ReplicationStatus[Unit]]

  40. def set(key: String, value: ChannelBuffer): Future[ReplicationStatus[Unit]]

    Stores a key in all replicas and returns the aggregated replication status.

  41. def stats(args: Option[String]): Future[Seq[String]]

    Unsupported operation yet

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def toString(): String

    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped