Record Class BlueMindCachedSession
java.lang.Object
java.lang.Record
org.exoplatform.bluemind.client.model.BlueMindCachedSession
- Record Components:
sessionId- the session id BlueMind handed back — a credentialopenedAtMillis- when it was opened, in epoch milliseconds
A BlueMind session id and when it was opened, as the technical-account
session storage keeps it (the credentials provider's
BluemindSessionStorage.CachedSession).-
Constructor Summary
ConstructorsConstructorDescriptionBlueMindCachedSession(String sessionId, long openedAtMillis) Creates an instance of aBlueMindCachedSessionrecord 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.longReturns the value of theopenedAtMillisrecord component.Returns the value of thesessionIdrecord component.toString()Names the session without its id: the id is a credential, never in a log line.
-
Constructor Details
-
BlueMindCachedSession
Creates an instance of aBlueMindCachedSessionrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentopenedAtMillis- the value for theopenedAtMillisrecord component
-
-
Method Details
-
toString
Names the session without its id: the id is a credential, never in a log line. -
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 '=='. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
openedAtMillis
public long openedAtMillis()Returns the value of theopenedAtMillisrecord component.- Returns:
- the value of the
openedAtMillisrecord component
-