Compartir vía


ActorServiceAttribute Interface

public interface ActorServiceAttribute

This attributes allows configuring the properties of the actor service. The attribute is applied on the actor type.

Method Summary

Modifier and Type Method and Description
String name()

The relative name of the actor service. This name will be combined with the application name to provide the full name of the actor service.

Remarks:By default, the actor service name is derived from the type of the actor interface microsoft.servicefabric.actors.ActorNameFormat#getFabricServiceName(Class, String) . However, in case when an actor interface is implemented by more than one actor, including by a derived type, the name cannot be determined from the actor interface in an unambiguous manner. In that case, the name of the actor service must be configured using this property of the ActorServiceAttribute.

Method Details

name

public String name()

The relative name of the actor service. This name will be combined with the application name to provide the full name of the actor service.

Remarks:By default, the actor service name is derived from the type of the actor interface microsoft.servicefabric.actors.ActorNameFormat#getFabricServiceName(Class, String) . However, in case when an actor interface is implemented by more than one actor, including by a derived type, the name cannot be determined from the actor interface in an unambiguous manner. In that case, the name of the actor service must be configured using this property of the ActorServiceAttribute.

Returns:

The name of the actor service relative to the application name.

Applies to