mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: add method OpenVidu#getActiveSession(String sessionId)
parent
b283dcd3a2
commit
c37e619dac
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue