ActorTypeInformation Class
- java.
lang. Object - microsoft.
servicefabric. actors. runtime. ActorTypeInformation
- microsoft.
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 |
---|---|
Actor |
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. |
State |
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:
Returns:
ActorTypeInformation created from actorType.
Throws:
getEventInterfaceTypes
public List<>>> getEventInterfaceTypes()
Gets actor event interface which the actor class implements.
Returns:
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:
getServiceName
public String getServiceName()
Gets service name if specified using ActorServiceAttribute for actor class.
Returns:
getStatePersistence
public StatePersistence getStatePersistence()
Gets the StatePersistence enum representing type of state persistence for the actor.
Returns:
isAbstract
public boolean isAbstract()
Gets if class implementing actor is abstract.
Returns:
isRemindable
public boolean isRemindable()
Gets a value whether the actor class implements Remindable
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for