Compartir vía


ActorTypeInformation Class

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

public class ActorTypeInformation

Contains information about the type implementing an actor.

Constructor Summary

Constructor Description
ActorTypeInformation()

Initializes a new instance of the ActorTypeInformation class.

Method Summary

Modifier and Type Method and Description
ActorTypeInformation get(Class<?> actorClass)

Creates ActorTypeInformation from actorType.

When base type for actorType is not of type ActorBase.

When actorType does not implement an interface deriving from Actor and is not marked as abstract.

When actorType implements more than one interface which derives from Actor but doesn't have ActorServiceAttribute.

List<Class<?>> getEventInterfaceTypes()

Gets actor event interface which the actor class implements.

Class<?> getImplementationType()

Gets type of the class implementing the actor.

List<Class<?>> getInterfaceTypes()

Gets the actor interface types which derive from Actor and implemented by actor class.

String getServiceName()

Gets service name if specified using ActorServiceAttribute for actor class.

StatePersistence getStatePersistence()

Gets the StatePersistence enum representing type of state persistence for the actor.

boolean isAbstract()

Gets if class implementing actor is abstract.

boolean isRemindable()

Gets a value whether the actor class implements Remindable

Constructor Details

ActorTypeInformation

public ActorTypeInformation()

Initializes a new instance of the ActorTypeInformation class.

Method Details

get

public static ActorTypeInformation get(Class actorClass)

Creates ActorTypeInformation from actorType.

When base type for actorType is not of type ActorBase.

When actorType does not implement an interface deriving from Actor and is not marked as abstract.

When actorType implements more than one interface which derives from Actor but doesn't have ActorServiceAttribute.

Parameters:

actorClass - Type of class implementing the actor to create ActorTypeInforamtion for.

Returns:

ActorTypeInformation created from actorType.

Throws:

IllegalArgumentException

getEventInterfaceTypes

public List<>> getEventInterfaceTypes()

Gets actor event interface which the actor class implements.

Returns:

An enumerator hat can be used to iterate through the actor event interface which the actor class implements.

getImplementationType

public Class getImplementationType()

Gets type of the class implementing the actor.

Returns:

java.lang.Class type of the class implementing the actor.

getInterfaceTypes

public List<>> getInterfaceTypes()

Gets the actor interface types which derive from Actor and implemented by actor class.

Returns:

An enumerator that can be used to iterate through the actor interface type.

getServiceName

public String getServiceName()

Gets service name if specified using ActorServiceAttribute for actor class.

Returns:

Service name if specified using ActorServiceAttribute for actor class, null if attribute is not used.

getStatePersistence

public StatePersistence getStatePersistence()

Gets the StatePersistence enum representing type of state persistence for the actor.

Returns:

The StatePersistence representing type of state persistence for the actor.

isAbstract

public boolean isAbstract()

Gets if class implementing actor is abstract.

Returns:

true if class implementing actor is abstract, otherwise false.

isRemindable

public boolean isRemindable()

Gets a value whether the actor class implements Remindable

Returns:

true if the actor class implements Remindable; otherwise false.

Applies to