Example usage for java.lang AutoCloseable interface-usage

List of usage examples for java.lang AutoCloseable interface-usage

Introduction

In this page you can find the example usage for java.lang AutoCloseable interface-usage.

Usage

From source file onl.area51.gfs.grib2.job.GribRetriever.java

/**
 * Handles the retrieval of GFS GRIB files from NOAA
 * <p>
 * @author peter
 */
public class GribRetriever implements AutoCloseable {

From source file io.fluo.metrics.config.Reporters.java

public class Reporters implements AutoCloseable {

    private static final Logger log = LoggerFactory.getLogger(Reporters.class);

    private final List<AutoCloseable> reporters;

From source file com.itemanalysis.jmetrik.file.JmetrikFileWriter.java

/**
 * A *.jmetrik file is a plain text file that is created by this class. The file is written in jMetrik format.
 * This format includes a header with information (VariableAttributes) about the file, variables contained in
 * the file, item scoring information, and information about special data codes (see writeHeader()). The
 * header is followed by one or more rows of comma delimited values. There is one row for each case.
 *

From source file com.streamsets.pipeline.lib.csv.CsvParser.java

public class CsvParser implements Closeable, AutoCloseable {
    private long currentPos;
    private long skipLinesPosCorrection;
    private final CSVParser parser;
    private final CountingReader reader;
    private final int maxObjectLen;

From source file org.elasticsearch.hadoop.yarn.am.ApplicationMaster.java

public class ApplicationMaster implements AutoCloseable {

    private static final Log log = LogFactory.getLog(ApplicationMaster.class);

    private ApplicationAttemptId appId;
    private Map<String, String> env;

From source file org.kbac.throttle.Meter.java

/**
 * Created by krzysztof on 21/12/2015.
 * <p/>
 * Thread safe controller allowing to throttle requests for a given name using pre-configured throttling strategy and interval
 * @author Krzysztof Bacalski
 *

From source file org.sonarqube.qa.util.LogsTailer.java

/**
 * Watch log files, usually server logs (see Orchestrator.getServer().get*Logs()).
 * This class allows to not load the full content in memory.
 */
public class LogsTailer implements AutoCloseable {

From source file org.apache.bookkeeper.metadata.etcd.EtcdMetadataDriverBase.java

/**
 * This is a mixin class for supporting etcd based metadata drivers.
 */
@Slf4j
class EtcdMetadataDriverBase implements AutoCloseable {

From source file at.ac.univie.isc.asio.insight.EventResource.java

/**
 * Publish events from the internal event bus as server-sent-event streams.
 */
@Component
@Path("/api/events")
public class EventResource implements AutoCloseable {

From source file org.apache.reef.runtime.common.driver.evaluator.EvaluatorIdlenessThreadPool.java

/**
 * Runs threads in a thread pool to check the completion of Evaluators on the closing
 * of an {@link EvaluatorManager} in order to trigger Evaluator idleness checks.
 */
@Private
public final class EvaluatorIdlenessThreadPool implements AutoCloseable {