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

com.github.sseserver.ConnectionQueryService Maven / Gradle / Ivy

package com.github.sseserver;

import com.github.sseserver.remote.ConnectionByUserIdDTO;
import com.github.sseserver.remote.ConnectionDTO;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface ConnectionQueryService {

    /* getConnection */

     List> getConnectionDTOAll();

    List getConnectionDTOByUserId(Serializable userId);

    /* getUser */

    boolean isOnline(Serializable userId);

     ACCESS_USER getUser(Serializable userId);

     List getUsers();

     List getUsersByListening(String sseListenerName);

     List getUsersByTenantIdListening(Serializable tenantId, String sseListenerName);

    /* getUserIds */

     Collection getUserIds(Class type);

     List getUserIdsByListening(String sseListenerName, Class type);

     List getUserIdsByTenantIdListening(Serializable tenantId, String sseListenerName, Class type);

    /* getAccessToken */

    Collection getAccessTokens();

    /* getTenantId */

     List getTenantIds(Class type);

    /* getChannels */

    List getChannels();

    /* count */

    /**
     * 获取当前登录端数量
     */
    int getAccessTokenCount();

    /**
     * 获取当前用户数量
     */
    int getUserCount();

    /**
     * 获取当前连接数量
     */
    int getConnectionCount();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy