Package akka.javasdk.agent
Record Class SessionMemoryEntity.CompactionCmd
- Enclosing class:
SessionMemoryEntity
public static record SessionMemoryEntity.CompactionCmd(SessionMessage.UserMessage userMessage, SessionMessage.AiMessage aiMessage, long sequenceNumber)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompactionCmd
(SessionMessage.UserMessage userMessage, SessionMessage.AiMessage aiMessage, long sequenceNumber) Creates an instance of aCompactionCmd
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaiMessage
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thesequenceNumber
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserMessage
record component.
-
Constructor Details
-
CompactionCmd
public CompactionCmd(SessionMessage.UserMessage userMessage, SessionMessage.AiMessage aiMessage, long sequenceNumber) Creates an instance of aCompactionCmd
record class.- Parameters:
userMessage
- the value for theuserMessage
record componentaiMessage
- the value for theaiMessage
record componentsequenceNumber
- the value for thesequenceNumber
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
userMessage
Returns the value of theuserMessage
record component.- Returns:
- the value of the
userMessage
record component
-
aiMessage
Returns the value of theaiMessage
record component.- Returns:
- the value of the
aiMessage
record component
-
sequenceNumber
public long sequenceNumber()Returns the value of thesequenceNumber
record component.- Returns:
- the value of the
sequenceNumber
record component
-