ActorExtensions Class

  • java.lang.Object
    • microsoft.servicefabric.actors.ActorExtensions

public class ActorExtensions

Class containing extension methods for Actors.

Method Summary

Modifier and Type Method and Description
static<T extends Actor> ActorId getActorId(T actor)

Gets ActorId for the actor.

FabricActorReference getActorReference(Actor actor)

Gets ActorReference for the actor.

Method Details

getActorId

public static static ActorId getActorId(T actor)

Gets ActorId for the actor.

Parameters:

actor - Actor object to get ActorId for.

Returns:

ActorId for the actor.

getActorReference

public static FabricActorReference getActorReference(Actor actor)

Gets ActorReference for the actor.

Parameters:

actor - Actor object to get ActorReference for.

Returns:

ActorReference for the actor.

Applies to