final class ClientSharedCacheManager extends AbstractSharedCacheManager with Deconstructible
- Alphabetic
- By Inheritance
- ClientSharedCacheManager
- Deconstructible
- AbstractSharedCacheManager
- SharedCacheManager
- NetworkObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClientSharedCacheManager(family: String, network: Network, omc: ObjectManagementChannel, store: PacketInjectableStore)
- Annotations
- @Persist()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attachToCache[A <: SharedCache](cacheID: Int, factory: SharedCacheFactory[A], method: CacheSearchMethod)(implicit arg0: ClassTag[A]): A
- Definition Classes
- AbstractSharedCacheManager → SharedCacheManager
- 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
- def attachToCache[A <: SharedCache](cacheID: Int)(implicit arg0: ClassTag[A], factory: SharedCacheFactory[A]): A
- Definition Classes
- SharedCacheManager
- val channel: SimpleRequestPacketChannel
- Attributes
- protected
- Definition Classes
- AbstractSharedCacheManager
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val currentIdentifier: String
- Attributes
- protected
- Definition Classes
- AbstractSharedCacheManager
- 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
- ClientSharedCacheManager → Deconstructible
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- AbstractSharedCacheManager → SharedCacheManager
- 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
- AbstractSharedCacheManager → SharedCacheManager
- Exceptions thrown
NoSuchCacheException
if no cache was found locally.
- def getCacheTrafficNode(cacheID: Int): TrafficNode[TrafficObject[TrafficReference]]
- Definition Classes
- AbstractSharedCacheManager → SharedCacheManager
- def getCachesLinker: InitialisableNetworkObjectLinker[SharedCacheReference] with TrafficInterestedNPH
- Definition Classes
- AbstractSharedCacheManager → SharedCacheManager
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def handleRequest(requestBundle: RequestPacketBundle): Unit
- Definition Classes
- ClientSharedCacheManager → AbstractSharedCacheManager
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val network: Network
The network that hosts this cache
The network that hosts this cache
- Definition Classes
- AbstractSharedCacheManager → SharedCacheManager
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def prepareScope(factory: ScopeFactory[_ <: ChannelScope]): ChannelScope
- Attributes
- protected
- Definition Classes
- AbstractSharedCacheManager
- val reference: SharedCacheManagerReference
The reference of this Network Object.
The reference of this Network Object.
- Definition Classes
- AbstractSharedCacheManager → NetworkObject
- See also
NetworkObjectReference
- def remoteCacheOpenChecks(cacheID: Int, cacheType: Class[_]): Unit
- Attributes
- protected
- Definition Classes
- ClientSharedCacheManager → AbstractSharedCacheManager
- 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
- ClientSharedCacheManager → AbstractSharedCacheManager
- Exceptions thrown
CacheOpenException
if something went wrong during the cache content retrieval (can be affected by behavior parameter)- See also
CacheContent
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object LocalCachesStore
- Attributes
- protected
- Definition Classes
- AbstractSharedCacheManager
- object ManagerCachesLinker extends AbstractNetworkPresenceHandler[SharedCacheReference] with InitialisableNetworkObjectLinker[SharedCacheReference] with TrafficInterestedNPH
- Attributes
- protected
- Definition Classes
- AbstractSharedCacheManager
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated