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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente las Cuestiones de GitHub como mecanismo de retroalimentación para el contenido y lo sustituiremos por un nuevo sistema de retroalimentación. Para más información, consulta:Enviar y ver comentarios de