Record Class AgentPusherTurn
java.lang.Object
java.lang.Record
io.meeds.chat.model.AgentPusherTurn
- Record Components:
leftKind- true when the account left an account kind's group: the turn then re-reads whether the account still wants a pusher, and no later turn of the same account replaces itdecidedAt- when the calling thread found the account wanted a pusher; null for a turn that re-reads itmatrixId- the account's Matrix id as the calling thread read it, which its request may not have committed yet; null for a turn that re-reads it
-
Constructor Summary
ConstructorsConstructorDescriptionAgentPusherTurn(boolean leftKind, Instant decidedAt, String matrixId) Creates an instance of aAgentPusherTurnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedecidedAtrecord component.static AgentPusherTurnA turn whose calling thread found the account wanted a pusher.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanleftKind()Returns the value of theleftKindrecord component.static AgentPusherTurnA turn of an account that left an account kind's group.matrixId()Returns the value of thematrixIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
desired
A turn whose calling thread found the account wanted a pusher.- Parameters:
decidedAt- when it decidedmatrixId- the account's Matrix id as the calling thread read it- Returns:
- the turn
-
leftKindTurn
A turn of an account that left an account kind's group.- Returns:
- the turn
-
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. -
leftKind
-
decidedAt
-
matrixId
-