Packages

class DefaultConnectedObjectCache[A <: AnyRef] extends AbstractSharedCache with InternalConnectedObjectCache[A]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultConnectedObjectCache
  2. InternalConnectedObjectCache
  3. NodeDataFactory
  4. ConnectedObjectCache
  5. AbstractSharedCache
  6. SharedCache
  7. DynamicNetworkObject
  8. NetworkObject
  9. AbstractAttributesPresence
  10. PacketAttributesPresence
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultConnectedObjectCache(channel: CachePacketChannel, classCenter: SyncClassCenter, defaultContracts: ContractDescriptorData, network: Network)
    Attributes
    protected

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. def addDefaultAttribute(key: Serializable, value: Serializable): DefaultConnectedObjectCache.this.type
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val cacheID: Int

    The cache ID of this cache.

    The cache ID of this cache.

    Definition Classes
    AbstractSharedCacheSharedCache
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. var defaultAttributes: PacketAttributes
    Attributes
    protected
    Definition Classes
    AbstractAttributesPresence
  9. val defaultContracts: ContractDescriptorData

    The default behavior tree for an fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectTree.

    The default behavior tree for an fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectTree. "the behavior of a tree" is simply a set of fr.linkit.api.gnom.cache.sync.contract.behavior.SynchronizedStructureBehavior that will set the behavior of each objects of a tree.

    Definition Classes
    DefaultConnectedObjectCacheConnectedObjectCache
  10. def drainAllAttributes(attributes: PacketAttributes): DefaultConnectedObjectCache.this.type
  11. def drainAllDefaultAttributes(attributes: PacketAttributesPresence): DefaultConnectedObjectCache.this.type
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. val family: String

    The SharedCacheManager family that manages this cache.

    The SharedCacheManager family that manages this cache.

    Definition Classes
    AbstractSharedCacheSharedCache
  15. def findObject(id: Int): Option[A with SynchronizedObject[A]]

    Finds a synchronized object in the cache.

    Finds a synchronized object in the cache.

    id

    the id of the root object that must be retrieved.

    returns

    None if no object is posted on the given id, Some(A with SynchronizedObject[A]) instead.

    Definition Classes
    DefaultConnectedObjectCacheConnectedObjectCache
  16. val forest: DefaultSyncObjectForest[A]

    Once an object A gets posted, it will create a fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectTree, in which the root node (fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectNode) will contains sub nodes for inner synchronized objects.

    Once an object A gets posted, it will create a fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectTree, in which the root node (fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectNode) will contains sub nodes for inner synchronized objects.
    The inner objects can be synchronized fields, synchronized method parameters and return values of the object.
    If a field, a parameter or whatever contains sub synchronized objects, other nodes will be set as their child. Here is an example :

    SyncNode[A] (id: 12, path: 12) :
              -> Field SyncNode[B] (id: 78, path: 12/78) :
                       -> Field SyncNode[BC]               (id: 7, path: 12/78/7)
                       -> Method Return Value SyncNode[BD] (id: 8, path: 12/78/8)
              -> Field SyncNode[C] (id: 8, path: 12/8)   :
                       -> Method Parameter SyncNode[CA] (id: 9, path: 12/8/9)
              -> Method Parameter SyncNode[E] (id: 9, path: 12/9)

    Each node contains an ID, the path is an array of ids from the root's id to the node id

    Definition Classes
    DefaultConnectedObjectCacheConnectedObjectCache
    See also

    fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectNode

    fr.linkit.api.gnom.cache.sync.tree.ConnectedObjectTree

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. def getDefaultAttribute[S](key: Serializable): Option[S]
  19. def getOrSynchronize(id: Int)(or: => SyncInstanceCreator[_ <: A]): A with SynchronizedObject[A]
    Definition Classes
    ConnectedObjectCache
  20. def getRootContract(factory: SyncObjectContractFactory)(creator: SyncInstanceCreator[A], context: ConnectedObjectContext): StructureContract[A]
    Attributes
    protected
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def isRegistered(id: NamedIdentifier): Boolean

    id

    the object's identifier.

    returns

    true if an object of the given id is posted in this cache.

    Definition Classes
    DefaultConnectedObjectCacheConnectedObjectCache
  24. def mirrorObject(id: Int, creator: SyncInstanceCreator[_ <: A], contracts: ContractDescriptorData): A with SynchronizedObject[A]
  25. def mirrorObject(id: Int, creator: SyncInstanceCreator[_ <: A]): A with SynchronizedObject[A]
    Definition Classes
    ConnectedObjectCache
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. val network: Network
  28. def newNodeData[B <: AnyRef, N <: NodeData[B]](req: NodeDataRequest[B, N]): N
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  31. val ownerID: String
    Definition Classes
    AbstractSharedCacheSharedCache
  32. val presence: NetworkObjectPresence
  33. val reference: SharedCacheReference

    The reference of this Network Object.

    The reference of this Network Object.

    Definition Classes
    AbstractSharedCacheNetworkObject
    See also

    NetworkObjectReference

  34. def requestTree(id: NamedIdentifier): Unit
  35. def syncObject(id: Int, creator: SyncInstanceCreator[_ <: A], contracts: ContractDescriptorData): A with SynchronizedObject[A]

    id

    the identifier of the root object

    creator

    the creator that will create the synchronized object.

    returns

    the synchronized object.

    Definition Classes
    DefaultConnectedObjectCacheConnectedObjectCache
  36. def syncObject(id: Int, creator: SyncInstanceCreator[_ <: A]): A with SynchronizedObject[A]

    posts an object in the cache.

    posts an object in the cache. The behavior of the object and sub objects will depends on the defaultContracts

    id

    the identifier of the root object

    creator

    the creator that will create the synchronized object.

    returns

    the synchronized object.

    Definition Classes
    ConnectedObjectCache
    Exceptions thrown

    CannotConnectException If the given object is a synchronized object. (No matters if the object is handled by this cache or not)

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from NodeDataFactory

Inherited from ConnectedObjectCache[A]

Inherited from AbstractSharedCache

Inherited from SharedCache

Inherited from AnyRef

Inherited from Any

Ungrouped