Package akka.actor.typed.internal
Interface ExtensionsImpl
-
- All Superinterfaces:
Extensions
- All Known Implementing Classes:
ActorSystemAdapter
public interface ExtensionsImpl extends Extensions
INTERNAL APIHook for ActorSystem to load extensions on startup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Extension>
TcreateExtensionInstance(ExtensionId<T> ext)
<T extends Extension>
Textension(ExtensionId<T> ext)
Returns the payload that is associated with the provided extension throws an IllegalStateException if it is not registered.<T extends Extension>
TfindExtension(ExtensionId<T> ext)
Returns any extension registered to the specified Extension or returns null if not registeredboolean
hasExtension(ExtensionId<? extends Extension> ext)
Returns whether the specified extension is already registered, this method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of executionvoid
loadExtensions()
INTERNAL API<T extends Extension>
TregisterExtension(ExtensionId<T> ext)
-
-
-
Method Detail
-
createExtensionInstance
<T extends Extension> T createExtensionInstance(ExtensionId<T> ext)
-
extension
<T extends Extension> T extension(ExtensionId<T> ext)
Description copied from interface:Extensions
Returns the payload that is associated with the provided extension throws an IllegalStateException if it is not registered. This method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution- Specified by:
extension
in interfaceExtensions
- Parameters:
ext
- (undocumented)- Returns:
- (undocumented)
-
findExtension
<T extends Extension> T findExtension(ExtensionId<T> ext)
Returns any extension registered to the specified Extension or returns null if not registered- Parameters:
ext
- (undocumented)- Returns:
- (undocumented)
-
hasExtension
boolean hasExtension(ExtensionId<? extends Extension> ext)
Description copied from interface:Extensions
Returns whether the specified extension is already registered, this method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution- Specified by:
hasExtension
in interfaceExtensions
- Parameters:
ext
- (undocumented)- Returns:
- (undocumented)
-
loadExtensions
void loadExtensions()
INTERNAL APIHook for ActorSystem to load extensions on startup
-
registerExtension
<T extends Extension> T registerExtension(ExtensionId<T> ext)
- Specified by:
registerExtension
in interfaceExtensions
-
-