Package akka.javasdk.impl.evaluation
Record Class DurableEvaluatorProtocol.StateEnvelope
- Enclosing class:
DurableEvaluatorProtocol
public static record DurableEvaluatorProtocol.StateEnvelope(DurableEvaluatorProtocol.TriggerSource triggerSource, DurableEvaluatorProtocol.SubjectData subject, Map<String,String> attributes, byte[] userState, String userStateContentType)
extends Record
The persisted state of one evaluation: the trigger it was started with and the user state. An
envelope persisted by SDK 3.7 holds the interaction subject as the flat fields
interactionId, agentComponentId and flowId and no attributes.-
Constructor Summary
ConstructorsConstructorDescriptionStateEnvelope(DurableEvaluatorProtocol.TriggerSource triggerSource, DurableEvaluatorProtocol.SubjectData subject, Map<String, String> attributes, byte[] userState, String userStateContentType) Creates an instance of aStateEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(DurableEvaluatorProtocol.TriggerSource triggerSource, Subject subject, Map<String, String> attributes, byte[] userState, String userStateContentType) subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggerSourcerecord component.byte[]Returns the value of theuserStaterecord component.Returns the value of theuserStateContentTyperecord component.
-
Constructor Details
-
StateEnvelope
public StateEnvelope(DurableEvaluatorProtocol.TriggerSource triggerSource, DurableEvaluatorProtocol.SubjectData subject, Map<String, String> attributes, byte[] userState, String userStateContentType) Creates an instance of aStateEnveloperecord class.- Parameters:
triggerSource- the value for thetriggerSourcerecord componentsubject- the value for thesubjectrecord componentattributes- the value for theattributesrecord componentuserState- the value for theuserStaterecord componentuserStateContentType- the value for theuserStateContentTyperecord component
-
-
Method Details
-
of
public static DurableEvaluatorProtocol.StateEnvelope of(DurableEvaluatorProtocol.TriggerSource triggerSource, Subject subject, Map<String, String> attributes, byte[] userState, String userStateContentType) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
triggerSource
Returns the value of thetriggerSourcerecord component.- Returns:
- the value of the
triggerSourcerecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
userState
public byte[] userState()Returns the value of theuserStaterecord component.- Returns:
- the value of the
userStaterecord component
-
userStateContentType
Returns the value of theuserStateContentTyperecord component.- Returns:
- the value of the
userStateContentTyperecord component
-