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
-
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. -
outcome
-
reason
-
sessionLost
public boolean sessionLost()Returns the value of thesessionLostrecord component.- Returns:
- the value of the
sessionLostrecord component
-