org.asteriskjava.pbx.internal.asterisk.DurationRoomOwner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
The newest version!
package org.asteriskjava.pbx.internal.asterisk;
import java.util.concurrent.TimeUnit;
public class DurationRoomOwner implements RoomOwner {
long end = System.currentTimeMillis();
public DurationRoomOwner(long duration, TimeUnit units) {
end = System.currentTimeMillis() + TimeUnit.MILLISECONDS.convert(duration, units);
}
@Override
public boolean isRoomStillRequired() {
return System.currentTimeMillis() < end;
}
@Override
public void setRoom(MeetmeRoom meetmeRoom) {
}
}