Compartir vía


ActorTypeExtensions Class

  • java.lang.Object
    • microsoft.servicefabric.actors.runtime.ActorTypeExtensions

public class ActorTypeExtensions

Contains extension method for Actor types.

Method Summary

Modifier and Type Method and Description
Class<?> [] getActorEventInterfaces(Class<?> cls)

Gets the actor event interfaces implemented by the actor class.

Class<?> [] getActorInterfaces(Class<?> cls)

Gets the actor interfaces implemented by the actor class.

boolean isActor(Class<?> actorClass)

Indicates a value whether the actorType is an actor.

boolean isActorInterface(Class<?> actorInterfaceClass)

Indicates whether the interface type is an actor interface.

boolean isRemindableActor(Class<?> actorClass)

Indicates a value whether an actor type implements Remindable interface.

Method Details

getActorEventInterfaces

public static Class [] getActorEventInterfaces(Class cls)

Gets the actor event interfaces implemented by the actor class.

Parameters:

cls - The type of class implementing actor.

Returns:

An array containing actor event interface which the type implements.

getActorInterfaces

public static Class [] getActorInterfaces(Class cls)

Gets the actor interfaces implemented by the actor class.

Parameters:

cls - The type of class implementing actor.

Returns:

An array containing actor interface which the type implements.

isActor

public static boolean isActor(Class actorClass)

Indicates a value whether the actorType is an actor.

Parameters:

actorClass - The type implementing actor.

Returns:

true, if the actorClass is an Actor; otherwise, false.

isActorInterface

public static boolean isActorInterface(Class actorInterfaceClass)

Indicates whether the interface type is an actor interface.

Parameters:

actorInterfaceClass - The interface type of the actor.

Returns:

true, if the actorInterfaceClass is an interface only implements Actor or Actor and ActorEventPublisher<TActorEvents>; otherwise, false.

isRemindableActor

public static boolean isRemindableActor(Class actorClass)

Indicates a value whether an actor type implements Remindable interface.

Parameters:

actorClass - The type implementing actor.

Returns:

true, if the actorClass implements an Remindable interface; otherwise, false.

Applies to