Packages

t

fr.linkit.api.gnom.network.statics

SynchronizedStaticsCache

trait SynchronizedStaticsCache extends ConnectedObjectCache[StaticsCaller]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SynchronizedStaticsCache
  2. ConnectedObjectCache
  3. PacketAttributesPresence
  4. SharedCache
  5. DynamicNetworkObject
  6. NetworkObject
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def addDefaultAttribute(key: Serializable, value: Serializable): SynchronizedStaticsCache.this.type
    Definition Classes
    PacketAttributesPresence
  2. abstract val cacheID: Int

    The cache ID of this cache.

    The cache ID of this cache.

    Definition Classes
    SharedCache
  3. abstract 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
    ConnectedObjectCache
  4. abstract def drainAllAttributes(packetAttributes: PacketAttributes): SynchronizedStaticsCache.this.type
    Definition Classes
    PacketAttributesPresence
  5. abstract def drainAllDefaultAttributes(packetAttributes: PacketAttributesPresence): SynchronizedStaticsCache.this.type
    Definition Classes
    PacketAttributesPresence
  6. abstract val family: String

    The SharedCacheManager family that manages this cache.

    The SharedCacheManager family that manages this cache.

    Definition Classes
    SharedCache
  7. abstract def findObject(id: Int): Option[StaticsCaller with SynchronizedObject[StaticsCaller]]

    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
    ConnectedObjectCache
  8. abstract val forest: SynchronizedObjectForest[StaticsCaller]

    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
    ConnectedObjectCache
    See also

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

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

  9. abstract def getDefaultAttribute[S](key: Serializable): Option[S]
    Definition Classes
    PacketAttributesPresence
  10. abstract 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
    ConnectedObjectCache
  11. abstract def mirrorObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller], contracts: ContractDescriptorData): StaticsCaller with SynchronizedObject[StaticsCaller]
    Definition Classes
    ConnectedObjectCache
  12. abstract val network: Network
    Definition Classes
    ConnectedObjectCache
  13. abstract val ownerID: String
    Definition Classes
    SharedCache
  14. abstract def presence: NetworkObjectPresence
    Definition Classes
    DynamicNetworkObject
  15. abstract def reference: SharedCacheReference

    The reference of this Network Object.

    The reference of this Network Object.

    Definition Classes
    NetworkObject
    See also

    NetworkObjectReference

  16. abstract def syncObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller], contract: ContractDescriptorData): StaticsCaller with SynchronizedObject[StaticsCaller]

    id

    the identifier of the root object

    creator

    the creator that will create the synchronized object.

    returns

    the synchronized object.

    Definition Classes
    ConnectedObjectCache

Concrete 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def getOrSynchronize(id: Int)(or: => SyncInstanceCreator[_ <: StaticsCaller]): StaticsCaller with SynchronizedObject[StaticsCaller]
    Definition Classes
    ConnectedObjectCache
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def mirrorObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller]): StaticsCaller with SynchronizedObject[StaticsCaller]
    Definition Classes
    ConnectedObjectCache
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. def syncObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller]): StaticsCaller with SynchronizedObject[StaticsCaller]

    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)

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. 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 SharedCache

Inherited from AnyRef

Inherited from Any

Ungrouped