Record Class StateMachine.Input
java.lang.Object
java.lang.Record
dev.restate.sdk.core.StateMachine.Input
- Enclosing interface:
StateMachine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.@Nullable StringReturns the value of theidempotencyKeyrecord component.input()Returns the value of theinputrecord component.Returns the value of theinvocationIdrecord component.key()Returns the value of thekeyrecord component.@Nullable StringlimitKey()Returns the value of thelimitKeyrecord component.longReturns the value of therandomSeedrecord component.@Nullable Stringscope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
public Input(String invocationId, String key, List<String[]> headers, Slice input, long randomSeed, @Nullable String scope, @Nullable String limitKey, @Nullable String idempotencyKey) Creates an instance of aInputrecord class.- Parameters:
invocationId- the value for theinvocationIdrecord componentkey- the value for thekeyrecord componentheaders- the value for theheadersrecord componentinput- the value for theinputrecord componentrandomSeed- the value for therandomSeedrecord componentscope- the value for thescoperecord componentlimitKey- the value for thelimitKeyrecord componentidempotencyKey- the value for theidempotencyKeyrecord component
-
-
Method Details
-
headersAsMap
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
invocationId
Returns the value of theinvocationIdrecord component.- Returns:
- the value of the
invocationIdrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
headers
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
randomSeed
public long randomSeed()Returns the value of therandomSeedrecord component.- Returns:
- the value of the
randomSeedrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
limitKey
Returns the value of thelimitKeyrecord component.- Returns:
- the value of the
limitKeyrecord component
-
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-