All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.icodegarden.nutrient.lang.lifecycle.TimeoutableCloseable Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
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