Package akka.javasdk.impl.agent
Record Class SessionMemoryClient.MemorySettings
- Enclosing class:
SessionMemoryClient
-
Constructor Summary
ConstructorsConstructorDescriptionMemorySettings
(boolean read, boolean write, Optional<Integer> historyLimit) Creates an instance of aMemorySettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehistoryLimit
record component.boolean
read()
Returns the value of theread
record component.final String
toString()
Returns a string representation of this record class.boolean
write()
Returns the value of thewrite
record component.
-
Constructor Details
-
MemorySettings
Creates an instance of aMemorySettings
record class.- Parameters:
read
- the value for theread
record componentwrite
- the value for thewrite
record componenthistoryLimit
- the value for thehistoryLimit
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 '=='. -
read
public boolean read()Returns the value of theread
record component.- Returns:
- the value of the
read
record component
-
write
public boolean write()Returns the value of thewrite
record component.- Returns:
- the value of the
write
record component
-
historyLimit
Returns the value of thehistoryLimit
record component.- Returns:
- the value of the
historyLimit
record component
-