Class

com.twitter.storehaus

MinBatchingReadableStore

Related Doc: package storehaus

Permalink

class MinBatchingReadableStore[K, V] extends ReadableStoreProxy[K, V]

Instead of doing a get, this combinator always does a multiGet after enough gets have been created.

Linear Supertypes
ReadableStoreProxy[K, V], Proxied[ReadableStore[K, V]], ReadableStore[K, V], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MinBatchingReadableStore
  2. ReadableStoreProxy
  3. Proxied
  4. ReadableStore
  5. Closable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MinBatchingReadableStore(self: ReadableStore[K, V], minMultiGetSize: Int)(implicit fc: FutureCollector)

    Permalink

    self

    the store to fetch values from

    minMultiGetSize

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

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

    Permalink

    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
    ReadableStoreProxyReadableStore → Closable
  7. def close(after: Duration): Future[Unit]

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

    Permalink
    Definition Classes
    Closable
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def flush: Future[Unit]

    Permalink

    Execute a multiget now.

    Execute a multiget now. This future completes when all of the multiGets are done

  13. def get(k: K): Future[Option[V]]

    Permalink

    Always go through multGet so we don't leave keys sitting around too long be careful to note this is not self.multiGet, which would directly issue the query and be what we have if we don't override the Proxy

    Always go through multGet so we don't leave keys sitting around too long be careful to note this is not self.multiGet, which would directly issue the query and be what we have if we don't override the Proxy

    Definition Classes
    MinBatchingReadableStoreReadableStoreProxyReadableStore
  14. final def getClass(): Class[_]

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

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

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

    Permalink

    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
    MinBatchingReadableStoreReadableStoreProxyReadableStore
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. val self: ReadableStore[K, V]

    Permalink

    the store to fetch values from

    the store to fetch values from

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

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

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

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

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

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

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