All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.collaborationengine.NewUserHandler Maven / Gradle / Ivy

/*
 * Copyright 2020-2022 Vaadin Ltd.
 *
 * This program is available under Commercial Vaadin Runtime License 1.0
 * (CVRLv1).
 *
 * For the full License, see http://vaadin.com/license/cvrl-1
 */
package com.vaadin.collaborationengine;

import java.io.Serializable;

import com.vaadin.flow.shared.Registration;

/**
 * Functional interface that defines how to handle a user when it becomes
 * present in a topic.
 *
 * @see PresenceManager#setNewUserHandler(NewUserHandler)
 * @author Vaadin Ltd
 * @since 3.2
 * @deprecated Use {@link PresenceHandler} instead
 */
@Deprecated
@FunctionalInterface
public interface NewUserHandler extends Serializable {

    /**
     * Handles a user when it becomes present in a topic.
     *
     * @param user
     *            the user that becomes present
     * @return a registration that will be removed when the user stops being
     *         present
     */
    Registration handleNewUser(UserInfo user);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy