Class PresenceUserJoinedEvent

  • All Implemented Interfaces:
    Serializable

    public final class PresenceUserJoinedEvent
    extends Object
    implements Serializable
    Fired when a user or view joins a resource, according to the configured tracking strategy. The user strategy deduplicates by user ID; the view strategy fires once per tracking ID. Observers can use the event to refresh resource-specific presence views.
    Since:
    8.6.0
    See Also:
    Serialized Form
    • Constructor Detail

      • PresenceUserJoinedEvent

        public PresenceUserJoinedEvent​(ResourceKey resourceKey,
                                       UserInfo user)
        Creates a new PresenceUserJoinedEvent instance.
        Parameters:
        resourceKey - The resource key of the resource that was joined.
        user - The user that joined the resource.
        Since:
        8.6.0, 8.6.0
    • Method Detail

      • getResourceKey

        public ResourceKey getResourceKey()
        The resource key of the resource that was joined.
        Since:
        8.6.0
      • getUser

        public UserInfo getUser()
        The user that joined the resource.
        Since:
        8.6.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object