Package akka.actor.typed
Class ActorTags
- java.lang.Object
-
- akka.actor.typed.Props
-
- akka.actor.typed.ActorTags
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
PropsImpl.ActorTagsImpl
public abstract class ActorTags extends Props
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActorTags()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ActorTags
apply(java.lang.String tag, scala.collection.immutable.Seq<java.lang.String> additionalTags)
Scala API: create a tag props with one or more tagsstatic ActorTags
apply(scala.collection.immutable.Set<java.lang.String> tags)
Scala API: create a multi-tag props.static ActorTags
create(java.lang.String... tags)
Java API: create a tag props with one or more tagsstatic ActorTags
create(java.util.Set<java.lang.String> tags)
Java API: create a multi-tag propsstatic ActorTags
create(scala.collection.immutable.Seq<java.lang.String> tags)
Java API: create a tag props with one or more tagsjava.util.Set<java.lang.String>
getTags()
Java API: one or more tags defined for the actorabstract scala.collection.immutable.Set<java.lang.String>
tags()
Scala API: one or more tags defined for the actor-
Methods inherited from class akka.actor.typed.Props
empty, withDispatcherDefault, withDispatcherFromConfig, withDispatcherSameAsParent, withMailboxFromConfig
-
-
-
-
Method Detail
-
create
public static ActorTags create(java.lang.String... tags)
Java API: create a tag props with one or more tags
-
create
public static ActorTags create(scala.collection.immutable.Seq<java.lang.String> tags)
Java API: create a tag props with one or more tags
-
create
public static ActorTags create(java.util.Set<java.lang.String> tags)
Java API: create a multi-tag propsSet must not be empty.
-
apply
public static ActorTags apply(java.lang.String tag, scala.collection.immutable.Seq<java.lang.String> additionalTags)
Scala API: create a tag props with one or more tags
-
apply
public static ActorTags apply(scala.collection.immutable.Set<java.lang.String> tags)
Scala API: create a multi-tag props.Set must not be empty.
-
tags
public abstract scala.collection.immutable.Set<java.lang.String> tags()
Scala API: one or more tags defined for the actor- Returns:
-
getTags
public java.util.Set<java.lang.String> getTags()
Java API: one or more tags defined for the actor
-
-