How can i define max time in a room using Java?

Is it possible to set a maximum time of a room after making a connection between two users?

Thank u

This is in Javascript, I’m using Java, is there something similar?
Thank you

Nope, you can implement your reservation system using java, and configure prosody backend to use it.

Any suggestions or ideas on how to do it?

after connecting people in the room, calculating the time I want and calling the jitsiMeetActivity.leave() method or jitsiMeetActivity.finish() but it doesn’t work

A you are asking about android implementation in the client app. Sorry I don’t have experience woth using the mobile sdk.

That`s fine man, thank u