com.gilt.gfc.cache

SyncCacheImpl

trait SyncCacheImpl[K, V] extends SyncCache[K, V] with SyncCacheEventNotifierImpl[K, V] with CacheBaseImpl[K, V]

SyncCache Implementation.

Self Type
SyncCacheImpl[K, V] with CacheConfiguration
Since

28/Jul/2014 15:58

Linear Supertypes
CacheBaseImpl[K, V], Loggable, SyncCacheEventNotifierImpl[K, V], SyncCache[K, V], SyncCacheEventNotifier[K, V], CacheBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SyncCacheImpl
  2. CacheBaseImpl
  3. Loggable
  4. SyncCacheEventNotifierImpl
  5. SyncCache
  6. SyncCacheEventNotifier
  7. CacheBase
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getSourceObjects: Future[Iterable[(K, V)]]

    The source data that will be used to build all views

    The source data that will be used to build all views

    returns

    an iterator of key-value pairs that will be used to build all cached views

    Definition Classes
    CacheBaseImpl

Concrete 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 asMap: Map[K, V]

    Definition Classes
    SyncCacheImplSyncCache
  8. def buildCache(kvs: Iterable[(K, V)]): Unit

    Attributes
    protected
    Definition Classes
    SyncCacheImpl → CacheBaseImpl
  9. def checkStarted(): Unit

    Attributes
    protected
    Definition Classes
    CacheBase
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def debug(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  12. def debug(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def error(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  16. def error(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  17. def error(ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  18. def executor: AsyncScheduledExecutorService

    Attributes
    protected
    Definition Classes
    CacheBaseImpl
  19. def fatal(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  20. def fatal(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  21. def fatal(ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  22. def finalize(): Unit

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

    Try to load a value from the cache with the given key.

    Try to load a value from the cache with the given key.

    This will try to fetch the value from the in-memory cache with no remote call on cache-misses.

    key

    unique key of the needed value.

    returns

    an optional value if found, None otherwise.

    Definition Classes
    SyncCacheImplSyncCache
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. final def getOpt(key: K): Optional[V]

    Definition Classes
    SyncCache
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def info(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  28. def info(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def isStarted: Boolean

    Test if the cache has been started.

    Test if the cache has been started.

    Definition Classes
    CacheBaseImpl → CacheBase
  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 notifyCacheReloadFor(cache: Iterable[(K, V)]): Unit

    Notifies all registered SyncCacheEventHandler's that cache was reloaded.

    Notifies all registered SyncCacheEventHandler's that cache was reloaded.

    cache

    - cache that was reloaded

    Definition Classes
    SyncCacheEventNotifierImpl
  35. def registerHandler(handler: SyncCacheEventHandler[K, V]): Unit

    Register a SyncCacheEventHandler to be notified for cache events.

    Register a SyncCacheEventHandler to be notified for cache events.

    handler

    - the handler to be notified for cache events

    Definition Classes
    SyncCacheEventNotifierImplSyncCacheEventNotifier
  36. def reload(): Future[Unit]

    Definition Classes
    CacheBaseImpl
  37. def shutdown(): Unit

    Stop the cache from loading.

    Stop the cache from loading.

    Definition Classes
    CacheBaseImpl → CacheBase
  38. def start(): SyncCacheImpl.this

    Starts the loading of the cache.

    Starts the loading of the cache.

    Definition Classes
    CacheBaseImpl → CacheBase
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    AnyRef → Any
  41. def trace(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  42. def trace(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def warn(message: ⇒ String, ex: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Loggable
  47. def warn(message: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Loggable

Inherited from CacheBaseImpl[K, V]

Inherited from Loggable

Inherited from SyncCacheEventNotifierImpl[K, V]

Inherited from SyncCache[K, V]

Inherited from SyncCacheEventNotifier[K, V]

Inherited from CacheBase

Inherited from AnyRef

Inherited from Any

Ungrouped