Packages

c

fr.linkit.client.cache

ClientSharedCacheManager

final class ClientSharedCacheManager extends AbstractSharedCacheManager with Deconstructible

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClientSharedCacheManager
  2. Deconstructible
  3. AbstractSharedCacheManager
  4. SharedCacheManager
  5. NetworkObject
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ClientSharedCacheManager(family: String, network: Network, omc: ObjectManagementChannel, store: PacketInjectableStore)
    Annotations
    @Persist()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attachToCache[A <: SharedCache](cacheID: Int, factory: SharedCacheFactory[A], method: CacheSearchMethod)(implicit arg0: ClassTag[A]): A
  6. def attachToCache[A <: SharedCache](cacheID: Int, behavior: CacheSearchMethod)(implicit arg0: ClassTag[A], factory: SharedCacheFactory[A]): A

    Retrieves a SharedCache hosted by this SharedCacheManager.

    Retrieves a SharedCache hosted by this SharedCacheManager.
    This method will create and synchronise the current content of the cache that is placed on the cacheID :
    If no cache is opened on the cacheID, it will simply be created and have an empty content.
    If the cache was already opened by another engine, the cache instance will be created and its content will be synchronised.
    The cache will then be stored locally if it was not present in it.
    If the cache was already created and registered locally, the factory will not be called and the cached instance will then be returned.
    Note: can't be sure that every cache instances with the same cacheID are of the same type.

    cacheID

    the cache identifier

    behavior

    the kind of behavior to adopt when creating a cache

    factory

    the factory that will create the cache instance

    returns

    the cache instance.

    Definition Classes
    SharedCacheManager
    Exceptions thrown

    CacheNotAcceptedException if the cache is already created but the cache's does not equals to the given one.

    See also

    SharedCache

    SharedCacheFactory

    CacheSearchMethod

  7. def attachToCache[A <: SharedCache](cacheID: Int)(implicit arg0: ClassTag[A], factory: SharedCacheFactory[A]): A
    Definition Classes
    SharedCacheManager
  8. val channel: SimpleRequestPacketChannel
    Attributes
    protected
    Definition Classes
    AbstractSharedCacheManager
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. val currentIdentifier: String
    Attributes
    protected
    Definition Classes
    AbstractSharedCacheManager
  11. def deconstruct(): Array[Any]

    Turn this object to an array of object that must match the parameters of the @Persist constructor.

    Turn this object to an array of object that must match the parameters of the @Persist constructor.

    Definition Classes
    ClientSharedCacheManagerDeconstructible
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. val family: String

    Each Cache manager have a family string, it's in fact the identifier of the cache manager.

    Each Cache manager have a family string, it's in fact the identifier of the cache manager. For example, in the Network, each fr.linkit.api.gnom.network.Engine have a SharedCacheManager instance where the family string value is equals to the engine's identifier.

    Definition Classes
    AbstractSharedCacheManagerSharedCacheManager
  15. def getCacheInStore[A <: SharedCache](cacheID: Int)(implicit arg0: ClassTag[A]): A

    Get cache that is already opened and registered in the local cache.

    Get cache that is already opened and registered in the local cache. The cache content will not be retrieved, but if no cache is found in the local cache, this cache manager will not try to retrieve it on the network.

    cacheID

    the cache identifier

    returns

    the cache instance.

    Definition Classes
    AbstractSharedCacheManagerSharedCacheManager
    Exceptions thrown

    NoSuchCacheException if no cache was found locally.

  16. def getCacheTrafficNode(cacheID: Int): TrafficNode[TrafficObject[TrafficReference]]
  17. def getCachesLinker: InitialisableNetworkObjectLinker[SharedCacheReference] with TrafficInterestedNPH
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. def handleRequest(requestBundle: RequestPacketBundle): Unit
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. val network: Network

    The network that hosts this cache

    The network that hosts this cache

    Definition Classes
    AbstractSharedCacheManagerSharedCacheManager
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  26. def prepareScope(factory: ScopeFactory[_ <: ChannelScope]): ChannelScope
    Attributes
    protected
    Definition Classes
    AbstractSharedCacheManager
  27. val reference: SharedCacheManagerReference

    The reference of this Network Object.

    The reference of this Network Object.

    Definition Classes
    AbstractSharedCacheManagerNetworkObject
    See also

    NetworkObjectReference

  28. def remoteCacheOpenChecks(cacheID: Int, cacheType: Class[_]): Unit
    Attributes
    protected
    Definition Classes
    ClientSharedCacheManagerAbstractSharedCacheManager
  29. def retrieveCacheContent(cacheID: Int, behavior: CacheSearchMethod): Option[CacheContent]

    Retrieves the cache content of a given cache identifier.

    Retrieves the cache content of a given cache identifier.

    cacheID

    the identifier of a cache content that needs to be retrieved.

    behavior

    the kind of behavior to adopt when retrieving a cache content

    returns

    Some(content) if the cache content was retrieved, None if no cache has been found.

    Definition Classes
    ClientSharedCacheManagerAbstractSharedCacheManager
    Exceptions thrown

    CacheOpenException if something went wrong during the cache content retrieval (can be affected by behavior parameter)

    See also

    CacheContent

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. object LocalCachesStore
    Attributes
    protected
    Definition Classes
    AbstractSharedCacheManager
  36. object ManagerCachesLinker extends AbstractNetworkPresenceHandler[SharedCacheReference] with InitialisableNetworkObjectLinker[SharedCacheReference] with TrafficInterestedNPH
    Attributes
    protected
    Definition Classes
    AbstractSharedCacheManager

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Deconstructible

Inherited from SharedCacheManager

Inherited from AnyRef

Inherited from Any

Ungrouped