org.whispersystems.signalservice.api.util.UptimeSleepTimer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java
package org.whispersystems.signalservice.api.util;
import org.whispersystems.signalservice.api.util.SleepTimer;
/**
* A simle sleep timer. Since Thread.sleep is based on uptime
* this will not work properly in low-power sleep modes, when
* the CPU is suspended and uptime does not elapse.
*
*/
public class UptimeSleepTimer implements SleepTimer {
@Override
public void sleep(long millis) throws InterruptedException {
Thread.sleep(millis);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy