List of usage examples for java.io Closeable interface-usage
From source file com.splicemachine.tutorials.tsdbanalytics.dataobjects.ImpressionLogSerializer.java
/**
* Serializer Class for ImpressionLog, used with Kafka Queue.
* The ImpressionLog is encoded as Json String by producer.
* The Consumer converts the JsonString to ImpressionLog object.
*
* @author Jyotsna Ramineni
From source file org.apache.kylin.common.persistence.AutoDeleteDirectory.java
public class AutoDeleteDirectory implements Closeable { private final File tempFile; public AutoDeleteDirectory(File file) { tempFile = file;
From source file org.jon.ivmark.graphit.core.io.util.CsvIterator.java
/**
* utility class for iterating a csv file.
*
* @author jon
*
*/
From source file org.lable.oss.dynamicconfig.core.spi.ConfigurationSource.java
/**
* Service provider interface for a source of configuration information.
* <p>
* The general contract of this interface is that its methods are called in this order:
* <ul>
* <li>{@link #configure(Configuration)}
From source file co.cask.cdap.client.StreamWriter.java
/** * Provides ability for ingesting events to the Stream in different ways. */ public interface StreamWriter extends Closeable { /** * Ingest the Stream event with a string as body.
From source file com.kixeye.chassis.bootstrap.configuration.ConfigurationProvider.java
/** * Provides a strategy for resolving and/or creating an application's configuration * * @author dturner@kixeye.com */ public interface ConfigurationProvider extends Closeable {
From source file org.datacleaner.util.http.MonitorHttpClient.java
/**
* Defines a HTTP client for DataCleaner monitor connectivity.
*
* A monitor http client is STATEFUL and must be closed after usage. This is
* because some implementations will contain security tokens etc. which is
* reused accross requests.
From source file tk.jomp16.plugin.PluginManager.java
public class PluginManager implements Closeable { private List<Plugin> plugins = new ArrayList<>(); private PluginLoader pluginLoader = new PluginLoader(); private Gson gson; private IRCManager ircManager;
From source file com.griefcraft.util.Closer.java
/**
* Automatically closes a collection of closeable objects.
*
* @author dmulloy2
*/
From source file gobblin.util.AutoReturnableObject.java
/** * Borrow an object from a {@link GenericObjectPool} and returns it automatically on close. Useful for try with resource. */ public class AutoReturnableObject<T> implements Closeable { private final T object;