Record Class MazeService.OperationTicket
java.lang.Object
java.lang.Record
dev.despical.mazeengine.service.MazeService.OperationTicket
- Enclosing class:
MazeService
public static record MazeService.OperationTicket(UUID id, OperationKind kind, CompletableFuture<MazeRecord> result)
extends Record
Binds a unique accepted operation to its internal completion future.
The UUID separates this action from later work using the same maze name. The kind describes the submitted action, and the result future completes with a saved record or terminal failure after the tracker publishes its outcome.
-
Constructor Summary
ConstructorsConstructorDescriptionOperationTicket(UUID id, OperationKind kind, CompletableFuture<MazeRecord> result) Creates an instance of aOperationTicketrecord class. -
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.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperationTicket
Creates an instance of aOperationTicketrecord class.- Parameters:
id- the value for theidrecord componentkind- the value for thekindrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-