Package org.exoplatform.caldav.model
Record Class SubscriptionAttempt
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.SubscriptionAttempt
- Record Components:
outcome- what to do with the rowreason- why, for the line; null when it landedsessionLost- whether the session itself is no longer usable, so the rows after this one in the same session are left untried
public record SubscriptionAttempt(SubscriptionOutcome outcome, String reason, boolean sessionLost)
extends Record
How one attempt at a colleague's BlueMind subscription change ended.
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionAttempt(SubscriptionOutcome outcome, String reason, boolean sessionLost) Creates an instance of aSubscriptionAttemptrecord 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.outcome()Returns the value of theoutcomerecord component.reason()Returns the value of thereasonrecord component.booleanReturns the value of thesessionLostrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubscriptionAttempt
Creates an instance of aSubscriptionAttemptrecord class.- Parameters:
outcome- the value for theoutcomerecord componentreason- the value for thereasonrecord componentsessionLost- the value for thesessionLostrecord 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 '=='. -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
sessionLost
public boolean sessionLost()Returns the value of thesessionLostrecord component.- Returns:
- the value of the
sessionLostrecord component
-