Package org.apache.pekko.actor.typed
Class ActorTags
java.lang.Object
org.apache.pekko.actor.typed.Props
org.apache.pekko.actor.typed.ActorTags
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- Direct Known Subclasses:
PropsImpl.ActorTagsImpl
Actor tags are used to logically group actors. The tags are included in logging as markers
Especially useful for logging from functional style actors and since those may not have a clear logger class.
Not for user extension.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActorTagsScala API: create a tag props with one or more tagsstatic ActorTagsScala API: create a multi-tag props.static ActorTagsJava API: create a tag props with one or more tagsstatic ActorTagsJava API: create a multi-tag propsstatic ActorTagsJava API: create a tag props with one or more tagsgetTags()Java API: one or more tags defined for the actorabstract scala.collection.immutable.Set<String>tags()Scala API: one or more tags defined for the actorMethods inherited from class org.apache.pekko.actor.typed.Props
empty, withDispatcherDefault, withDispatcherFromConfig, withDispatcherSameAsParent, withMailboxFromConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
ActorTags
public ActorTags()
-
-
Method Details
-
create
Java API: create a tag props with one or more tags -
create
Java API: create a tag props with one or more tags -
create
Java API: create a multi-tag propsSet must not be empty.
-
apply
Scala API: create a tag props with one or more tags -
apply
Scala API: create a multi-tag props.Set must not be empty.
-
tags
Scala API: one or more tags defined for the actor- Returns:
-
getTags
Java API: one or more tags defined for the actor
-