类 WeakRegistry
java.lang.Object
pkg.exoad.poprock.core.registry.BaseRegistry
pkg.exoad.poprock.core.registry.WeakRegistry
- 所有已实现的接口:
DebuggableMixin
,SelfReportingMixin
,ITypeInferencing<Collection<Class<? extends RegistryEntry>>>
,NamedObjMixin
Weak Registry
A weak registry makes it so that all entries held by the internal hash table are attributed using a weak reference once that entry has been accessed AT LEAST ONCE.If the entry has been accessed at least once, it is purely up to when the next GC phase until that entry disappears.
THIS IS A WORK IN PROGRESS
- 作者:
- Jack Meng
-
字段概要
从接口继承的字段 pkg.exoad.poprock.core.mixins.NamedObjMixin
OBJECTS
-
构造器概要
-
方法概要
修饰符和类型方法说明protected RegistryEntry
acquireEntry
(String name) Returns the internal representation of a leaf.acquireEntryValue
(String name) protected void
An internal iterable instance (should not be exposed by reflection)boolean
isBound
(long name) void
registerEntry
(String name, RegistryEntry entry) This method is the main entry into "putting" a leaf into a registry.从类继承的方法 pkg.exoad.poprock.core.registry.BaseRegistry
acquireEntryCanonicalName, inferTyping
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 pkg.exoad.poprock.core.debug.DebuggableMixin
LOG, THROW_NOW, THROW_NOW_IF
从接口继承的方法 pkg.exoad.poprock.core.mixins.NamedObjMixin
getObjectName, setObjectName, withObjectName
从接口继承的方法 pkg.exoad.poprock.core.debug.SelfReportingMixin
getCanonicallyNamedThis, getNamedThis
-
字段详细资料
-
leafs
-
-
构造器详细资料
-
WeakRegistry
-
-
方法详细资料
-
registerEntry
从类复制的说明:BaseRegistry
This method is the main entry into "putting" a leaf into a registry. It acts similar to the registration process used byEventPoolService
.- 指定者:
registerEntry
在类中BaseRegistry
- 参数:
name
- The name of the leafentry
- The base modal of the leaf (property)- 另请参阅:
-
acquireEntry
从类复制的说明:BaseRegistry
Returns the internal representation of a leaf.Note that this method must handle an invalid name
- 指定者:
acquireEntry
在类中BaseRegistry
- 参数:
name
- The name of the leaf to look up- 返回:
- The RegistryEntry
-
acquireEntryValue
@VolatileImpl(reason="The computed hash of the name can be nonexistent") public Object acquireEntryValue(String name) - 覆盖:
acquireEntryValue
在类中BaseRegistry
-
forEach
从类复制的说明:BaseRegistry
An internal iterable instance (should not be exposed by reflection)- 指定者:
forEach
在类中BaseRegistry
- 参数:
e
- Consumer
-
isBound
public boolean isBound(long name)
-