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 herddb.jdbc.BasicHerdDBDataSource.java

/**
 * HerdDB DataSource
 *
 * @author enrico.olivelli
 */
public class BasicHerdDBDataSource implements javax.sql.DataSource, AutoCloseable {

From source file org.apache.metron.elasticsearch.client.ElasticsearchClient.java

/**
 * Wrapper around the Elasticsearch REST clients. Exposes capabilities of the low and high-level clients.
 * https://www.elastic.co/guide/en/elasticsearch/client/java-rest/5.6/java-rest-overview.html. Most, if not
 * all of use in Metron would be focused through the high-level client. It handles marshaling/unmarshaling.
 */
public class ElasticsearchClient implements AutoCloseable {

From source file com.linkedin.pinot.queries.TestHelper.java

public class TestHelper implements AutoCloseable {
    private static final Logger LOGGER = LoggerFactory.getLogger(TestHelper.class);

    static final String AVRO_DATA = "data/test_data-sv.avro";

    // package-visible since this is package-internal testing helper

From source file edu.umich.oasis.client.OASISConnection.java

public final class OASISConnection implements AutoCloseable {
    private static final String TAG = "OASIS.Client";
    private static final boolean localLOGV = Log.isLoggable(TAG, Log.VERBOSE);
    private static final boolean localLOGD = Log.isLoggable(TAG, Log.DEBUG);

    public interface Callback {

From source file io.github.retz.web.Client.java

public class Client implements AutoCloseable {

    public static final String VERSION_STRING;
    private static final ObjectMapper MAPPER = new ObjectMapper();

    static final Logger LOG = LoggerFactory.getLogger(Client.class);

From source file org.apache.storm.metricstore.rocksdb.RocksDbMetricsWriter.java

/**
 * Class designed to perform all metrics inserts into RocksDB.  Metrics are processed from a blocking queue.  Inserts
 * to RocksDB are done using a single thread to simplify design (such as looking up existing metric data for aggregation,
 * and fetching/evicting metadata from the cache).
 * </P>
 * A writable LRU StringMetadataCache is used to minimize looking up metadata string Ids.  As entries are added to the full cache, older

From source file com.joyent.manta.http.HttpHelper.java

/**
 * Interface describing the operations provided by our custom HTTP logic
 * that connects to the Manta server API.
 *
 * @author <a href="https://github.com/dekobon">Elijah Zupancic</a>
 * @since 3.0.0

From source file edu.usc.irds.sparkler.plugin.HtmlUnitFetcher.java

/**
 * This class has implements {@link edu.usc.irds.sparkler.Fetcher} using
 * <a href="http://htmlunit.sourceforge.net/"> HTMLUnit</a>.
 *
 */
public class HtmlUnitFetcher extends FetcherDefault implements AutoCloseable {

From source file herddb.server.ServerMain.java

/**
 * Created by enrico.olivelli on 23/03/2015.
 */
public class ServerMain implements AutoCloseable {

    static {

From source file com.act.lcms.db.io.DB.java

public class DB implements AutoCloseable {
    public enum OPERATION_PERFORMED {
        CREATE, READ, UPDATE, DELETE, ERROR,
    }

    public static final String DEFAULT_HOST = "localhost";