Package akka.actor.typed
Class ExtensionId<T extends Extension>
- java.lang.Object
-
- akka.actor.typed.ExtensionId<T>
-
- Direct Known Subclasses:
ActorRefResolver$,Cluster$,ClusterSharding$,ClusterSingleton$,DistributedData$,DistributedData$,Receptionist$
public abstract class ExtensionId<T extends Extension> extends java.lang.ObjectCreate the extension, will be invoked at most one time per actor system where the extension is registered.
-
-
Constructor Summary
Constructors Constructor Description ExtensionId()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tapply(ActorSystem<?> system)Lookup or create an instance of the extension identified by this id.abstract TcreateExtension(ActorSystem<?> system)booleanequals(java.lang.Object other)inthashCode()ExtensionId<T>id()Java API: The identifier of the extension
-
-
-
Method Detail
-
apply
public final T apply(ActorSystem<?> system)
Lookup or create an instance of the extension identified by this id.- Parameters:
system- (undocumented)- Returns:
- (undocumented)
-
createExtension
public abstract T createExtension(ActorSystem<?> system)
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
id
public ExtensionId<T> id()
Java API: The identifier of the extension- Returns:
- (undocumented)
-
-