fr.linkit.engine.gnom.network.statics
DefaultConnectedStaticsCache
Companion object DefaultConnectedStaticsCache
class DefaultConnectedStaticsCache extends DefaultConnectedObjectCache[StaticsCaller] with SynchronizedStaticsCache
- Alphabetic
- By Inheritance
- DefaultConnectedStaticsCache
- SynchronizedStaticsCache
- DefaultConnectedObjectCache
- InternalConnectedObjectCache
- NodeDataFactory
- ConnectedObjectCache
- AbstractSharedCache
- SharedCache
- DynamicNetworkObject
- NetworkObject
- AbstractAttributesPresence
- PacketAttributesPresence
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DefaultConnectedStaticsCache(channel: CachePacketChannel, classCenter: SyncClassCenter, defaultContracts: ContractDescriptorData, network: Network)
- 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
- def addDefaultAttribute(key: Serializable, value: Serializable): DefaultConnectedStaticsCache.this.type
- Definition Classes
- AbstractAttributesPresence → PacketAttributesPresence
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cacheID: Int
The cache ID of this cache.
The cache ID of this cache.
- Definition Classes
- AbstractSharedCache → SharedCache
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- var defaultAttributes: PacketAttributes
- Attributes
- protected
- Definition Classes
- AbstractAttributesPresence
- 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
- DefaultConnectedStaticsCache → DefaultConnectedObjectCache → ConnectedObjectCache
- def drainAllAttributes(attributes: PacketAttributes): DefaultConnectedStaticsCache.this.type
- Definition Classes
- AbstractAttributesPresence → PacketAttributesPresence
- def drainAllDefaultAttributes(attributes: PacketAttributesPresence): DefaultConnectedStaticsCache.this.type
- Definition Classes
- AbstractAttributesPresence → PacketAttributesPresence
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val family: String
The SharedCacheManager family that manages this cache.
The SharedCacheManager family that manages this cache.
- Definition Classes
- AbstractSharedCache → SharedCache
- 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
- DefaultConnectedObjectCache → ConnectedObjectCache
- val forest: DefaultSyncObjectForest[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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getDefaultAttribute[S](key: Serializable): Option[S]
- Definition Classes
- AbstractAttributesPresence → PacketAttributesPresence
- def getOrSynchronize(id: Int)(or: => SyncInstanceCreator[_ <: StaticsCaller]): StaticsCaller with SynchronizedObject[StaticsCaller]
- Definition Classes
- ConnectedObjectCache
- def getRootContract(factory: SyncObjectContractFactory)(creator: SyncInstanceCreator[StaticsCaller], context: ConnectedObjectContext): StructureContract[StaticsCaller]
- Attributes
- protected
- Definition Classes
- DefaultConnectedStaticsCache → DefaultConnectedObjectCache
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- DefaultConnectedObjectCache → ConnectedObjectCache
- def mirrorObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller], contracts: ContractDescriptorData): StaticsCaller with SynchronizedObject[StaticsCaller]
- Definition Classes
- DefaultConnectedObjectCache → ConnectedObjectCache
- def mirrorObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller]): StaticsCaller with SynchronizedObject[StaticsCaller]
- Definition Classes
- ConnectedObjectCache
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val network: Network
- Definition Classes
- DefaultConnectedStaticsCache → DefaultConnectedObjectCache → ConnectedObjectCache
- def newNodeData[B <: AnyRef, N <: NodeData[B]](req: NodeDataRequest[B, N]): N
- Definition Classes
- DefaultConnectedObjectCache → NodeDataFactory
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val ownerID: String
- Definition Classes
- AbstractSharedCache → SharedCache
- val presence: NetworkObjectPresence
- Definition Classes
- AbstractSharedCache → DynamicNetworkObject
- val reference: SharedCacheReference
The reference of this Network Object.
The reference of this Network Object.
- Definition Classes
- AbstractSharedCache → NetworkObject
- See also
NetworkObjectReference
- def requestTree(id: NamedIdentifier): Unit
- Definition Classes
- DefaultConnectedObjectCache → InternalConnectedObjectCache
- def syncObject(id: Int, creator: SyncInstanceCreator[_ <: StaticsCaller], contracts: 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
- DefaultConnectedStaticsCache → DefaultConnectedObjectCache → ConnectedObjectCache
- 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
- DefaultConnectedStaticsCache → ConnectedObjectCache
- Exceptions thrown
CannotConnectException
If the given object is a synchronized object. (No matters if the object is handled by this cache or not)
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated