openvidu-java-client: add method OpenVidu#getActiveSession(String sessionId)

pull/739/head
pabloFuente 2022-06-20 11:08:57 +02:00
parent b283dcd3a2
commit c37e619dac
1 changed files with 12 additions and 0 deletions

View File

@ -462,6 +462,18 @@ public class OpenVidu {
return new ArrayList<>(this.activeSessions.values()); return new ArrayList<>(this.activeSessions.values());
} }
/**
* Returns an active session. This method has the same behavior and restrictions
* as {@link io.openvidu.java.client.OpenVidu#getActiveSessions()}, but it just
* returns a single Session instead of the complete list of Sessions
*
* @param sessionId
* @return
*/
public Session getActiveSession(String sessionId) {
return this.activeSessions.get(sessionId);
}
/** /**
* Updates every property of every active Session with the current status they * Updates every property of every active Session with the current status they
* have in OpenVidu Server. After calling this method you can access the updated * have in OpenVidu Server. After calling this method you can access the updated