Record Class PeerNode.LostMember
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.peering.node.PeerNode.LostMember
- Enclosing class:
PeerNode
public static record PeerNode.LostMember(PeerId peer, long lostAtMillis, int attempts, long nextDueMillis, List<PeerAdvertisement.Endpoint> endpoints)
extends Record
A lost member being retried: when it was lost, how many introductions it had, when the next is due.
-
Constructor Summary
ConstructorsConstructorDescriptionLostMember(PeerId peer, long lostAtMillis, int attempts, long nextDueMillis, List<PeerAdvertisement.Endpoint> endpoints) Creates an instance of aLostMemberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.Returns the value of theendpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelostAtMillisrecord component.longReturns the value of thenextDueMillisrecord component.peer()Returns the value of thepeerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LostMember
public LostMember(PeerId peer, long lostAtMillis, int attempts, long nextDueMillis, List<PeerAdvertisement.Endpoint> endpoints) Creates an instance of aLostMemberrecord class.- Parameters:
peer- the value for thepeerrecord componentlostAtMillis- the value for thelostAtMillisrecord componentattempts- the value for theattemptsrecord componentnextDueMillis- the value for thenextDueMillisrecord componentendpoints- the value for theendpointsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
peer
Returns the value of thepeerrecord component.- Returns:
- the value of the
peerrecord component
-
lostAtMillis
public long lostAtMillis()Returns the value of thelostAtMillisrecord component.- Returns:
- the value of the
lostAtMillisrecord component
-
attempts
public int attempts()Returns the value of theattemptsrecord component.- Returns:
- the value of the
attemptsrecord component
-
nextDueMillis
public long nextDueMillis()Returns the value of thenextDueMillisrecord component.- Returns:
- the value of the
nextDueMillisrecord component
-
endpoints
Returns the value of theendpointsrecord component.- Returns:
- the value of the
endpointsrecord component
-