io.github.icodegarden.nutrient.lang.lifecycle.TimeoutableCloseable Maven / Gradle / Ivy
package io.github.icodegarden.nutrient.lang.lifecycle;
import java.io.IOException;
import java.time.Duration;
/**
*
* @author Fangfang.Xu
*
*/
public interface TimeoutableCloseable extends java.io.Closeable {
void close(long timeoutMillis) throws IOException;
default void close(Duration timeout) throws IOException {
close(timeout.toMillis());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy