ActorStateChange Class

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

public class ActorStateChange

Represents change to an actor state with a given state name.

Constructor Summary

Constructor Description
ActorStateChange(String stateName, Class<?> type, Object value, StateChangeKind changeKind)

Creates an instance of ActorStateChange class.

Method Summary

Modifier and Type Method and Description
StateChangeKind changeKind()

Gets the kind of state change for given actor state name.

Class<?> stateClass()

Gets the type of value associated with given actor state name.

String stateName()

Gets name of the actor state.

Object value()

Gets the value associated with given actor state name.

Constructor Details

ActorStateChange

public ActorStateChange(String stateName, Class type, Object value, StateChangeKind changeKind)

Creates an instance of ActorStateChange class.

Parameters:

stateName - Name of the actor state
type - Type of value associated with given actor state name.
value - Value associated with given actor state name.
changeKind - Kind of state change for given actor state name.

Method Details

changeKind

public StateChangeKind changeKind()

Gets the kind of state change for given actor state name.

Returns:

Kind of state change for given actor state name.

stateClass

public Class stateClass()

Gets the type of value associated with given actor state name.

Returns:

Type of value associated with given actor state name.

stateName

public String stateName()

Gets name of the actor state.

Returns:

Name of the actor state.

value

public Object value()

Gets the value associated with given actor state name.

Returns:

Value associated with given actor state name.

Applies to