Record Class PushResolver.LiveSession
java.lang.Object
java.lang.Record
com.iizix.server.push.engine.PushResolver.LiveSession
- Record Components:
uid- The user ID, or -1 when the application session has no authenticated user: such a session is a target of a send that names its device only (ruled 2026-09-26, CC-PUSH-ROADMAP row 3 B).appId- The application ID of the session.session- The client session.remote- The remote address, null when unknown.deviceUuid- The push UUID the session's channel reported (P4-10), null while it has reported none: such a session is an in-session target of every send that names no device and of none that does.
- Enclosing class:
PushResolver
public static record PushResolver.LiveSession(long uid, String appId, IClientSessionGyro session, InetAddress remote, String deviceUuid) extends Record
A live client session that has a Push Notification channel, with or without an authenticated user.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionLiveSession(long uid, String appId, IClientSessionGyro session, InetAddress remote, String deviceUuid) Creates an instance of aLiveSessionrecord class.Method Summary
Modifier and TypeMethodDescriptionappId()Returns the value of theappIdrecord component.Returns the value of thedeviceUuidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.remote()Returns the value of theremoterecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.longuid()Returns the value of theuidrecord component.
Constructor Details
LiveSession
public LiveSession(long uid, String appId, IClientSessionGyro session, InetAddress remote, String deviceUuid) Creates an instance of aLiveSessionrecord class.- Parameters:
uid- the value for theuidrecord componentappId- the value for theappIdrecord componentsession- the value for thesessionrecord componentremote- the value for theremoterecord componentdeviceUuid- the value for thedeviceUuidrecord 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.uid
appId
session
remote
deviceUuid
Returns the value of thedeviceUuidrecord component.- Returns:
- the value of the
deviceUuidrecord component