Package akka.javasdk.impl.evaluation
Record Class DurableEvaluatorProtocol.StateEnvelope
- Enclosing class:
DurableEvaluatorProtocol
-
Constructor Summary
ConstructorsConstructorDescriptionStateEnvelope(DurableEvaluatorProtocol.TriggerSource triggerSource, String flowId, String agentComponentId, String interactionId, byte[] userState, String userStateContentType) Creates an instance of aStateEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentComponentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.flowId()Returns the value of theflowIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.of(DurableEvaluatorProtocol.TriggerSource triggerSource, Subject subject, byte[] userState, String userStateContentType) 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, String flowId, String agentComponentId, String interactionId, byte[] userState, String userStateContentType) Creates an instance of aStateEnveloperecord class.- Parameters:
triggerSource- the value for thetriggerSourcerecord componentflowId- the value for theflowIdrecord componentagentComponentId- the value for theagentComponentIdrecord componentinteractionId- the value for theinteractionIdrecord componentuserState- the value for theuserStaterecord componentuserStateContentType- the value for theuserStateContentTyperecord component
-
-
Method Details
-
getSubject
-
of
public static DurableEvaluatorProtocol.StateEnvelope of(DurableEvaluatorProtocol.TriggerSource triggerSource, Subject subject, 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
-
flowId
Returns the value of theflowIdrecord component.- Returns:
- the value of the
flowIdrecord component
-
agentComponentId
Returns the value of theagentComponentIdrecord component.- Returns:
- the value of the
agentComponentIdrecord component
-
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord 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
-