Class

com.twitter.finagle.memcached.replication

BaseReplicationClient

Related Doc: package replication

Permalink

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseReplicationClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    clients

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

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

    Permalink
  5. def add(key: String, value: Buf): Future[ReplicationStatus[Boolean]]

    Permalink

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

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

    Permalink
  7. def append(key: String, value: Buf): Future[ReplicationStatus[Boolean]]

    Permalink

    Unsupported operation yet

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def checkAndSet(key: String, flags: Int, expiry: Time, value: Buf, casUniques: Seq[Buf]): Future[ReplicationStatus[CasResult]]

    Permalink
  10. def checkAndSet(key: String, value: Buf, casUniques: Seq[Buf]): Future[ReplicationStatus[CasResult]]

    Permalink

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

  11. def clone(): AnyRef

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

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

    Permalink

    Decrement a key and returns the aggregated replication status.

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

    Permalink

    Remove a key and returns the aggregated replication status.

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def getAll(keys: Iterable[String]): Future[Map[String, ReplicationStatus[Option[Buf]]]]

    Permalink
  19. def getAll(key: String): Future[ReplicationStatus[Option[Buf]]]

    Permalink

    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.

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

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

    Permalink
  22. def getOne(key: String, useRandomOrder: Boolean = false): Future[Option[Buf]]

    Permalink

    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.

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

    Permalink
  24. def getsAll(key: String): Future[ReplicationStatus[Option[(Buf, ReplicaCasUnique)]]]

    Permalink

    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;

  25. def hashCode(): Int

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

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

    Permalink

    Increment a key and returns the aggregated replication status.

  28. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

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

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

    Permalink
  33. def prepend(key: String, value: Buf): Future[ReplicationStatus[Boolean]]

    Permalink

    Unsupported operation yet

  34. def release(): Unit

    Permalink
  35. def replace(key: String, flags: Int, expiry: Time, value: Buf): Future[ReplicationStatus[Boolean]]

    Permalink
  36. def replace(key: String, value: Buf): Future[ReplicationStatus[Boolean]]

    Permalink

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

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

    Permalink
  38. def set(key: String, value: Buf): Future[ReplicationStatus[Unit]]

    Permalink

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

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

    Permalink

    Unsupported operation yet

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

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped