com.twitter.storehaus

BatchedStore

class BatchedStore[K, V] extends BatchedReadableStore[K, V] with Store[K, V]

Adds batched writes to BatchedReadableStore

Linear Supertypes
Store[K, V], WritableStore[K, Option[V]], BatchedReadableStore[K, V], ReadableStoreProxy[K, V], Proxied[ReadableStore[K, V]], ReadableStore[K, V], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BatchedStore
  2. Store
  3. WritableStore
  4. BatchedReadableStore
  5. ReadableStoreProxy
  6. Proxied
  7. ReadableStore
  8. Closable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BatchedStore(store: Store[K, V], maxMultiPutSize: Int, maxConcurrentMultiPuts: Int, maxMultiGetSize: Int, maxConcurrentMultiGets: Int)(implicit fc: FutureCollector[(K, V)])

    store

    the store to read and write values to

    maxMultiPutSize

    a multiPut to store will fetch values for at most maxMultiPutSize keys

    maxConcurrentMultiPuts

    the maximum number of multiputs to concurrently issue

    maxMultiGetSize

    a multiGet to store will fetch values for at most maxMultiGetSize keys

    maxConcurrentMultiGets

    the maximum number of multigets to concurrently issue

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 close(time: Time): Future[Unit]

    Close this store and release any resources.

    Close this store and release any resources. It is undefined what happens on get/multiGet after close

    Definition Classes
    WritableStore → Closable
  9. def close(after: Duration): Future[Unit]

    Definition Classes
    Closable
  10. final def close(): Future[Unit]

    Definition Classes
    Closable
  11. val connectionLock: AsyncSemaphore

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def get(k: K): Future[Option[V]]

    get a single key from the store.

    get a single key from the store. Prefer multiGet if you are getting more than one key at a time

    Definition Classes
    ReadableStoreProxyReadableStore
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

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

    Definition Classes
    Any
  19. def multiGet[K1 <: K](keys: Set[K1]): Map[K1, Future[Option[V]]]

    Get a set of keys from the store.

    Get a set of keys from the store. Important: all keys in the input set are in the resulting map. If the store fails to return a value for a given key, that should be represented by a Future.exception.

    Definition Classes
    BatchedReadableStoreReadableStoreProxyReadableStore
  20. def multiPut[K1 <: K](kvs: Map[K1, Option[V]]): Map[K1, Future[Unit]]

    Replace a set of keys at one time

    Replace a set of keys at one time

    Definition Classes
    BatchedStoreWritableStore
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def put(kv: (K, Option[V])): Future[Unit]

    Replace a value Delete is the same as put((k,None))

    Replace a value Delete is the same as put((k,None))

    Definition Classes
    BatchedStoreWritableStore
  25. val self: ReadableStore[K, V]

    Attributes
    protected
    Definition Classes
    BatchedReadableStoreProxied
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. val writeConnectionLock: AsyncSemaphore

    Attributes
    protected

Inherited from Store[K, V]

Inherited from WritableStore[K, Option[V]]

Inherited from BatchedReadableStore[K, V]

Inherited from ReadableStoreProxy[K, V]

Inherited from Proxied[ReadableStore[K, V]]

Inherited from ReadableStore[K, V]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped